Strict Standards: Non-static method Protector::getInstance() should not be called statically in /home/suehirogari/suehirogari.com/xoops_trust_path/modules/protector/include/precheck_functions.php on line 12

Strict Standards: Non-static method XCube_Root::getSingleton() should not be called statically in /home/suehirogari/suehirogari.com/public_html/include/common.php on line 18

Deprecated: Non-static method XCube_Root::getSingleton() should not be called statically, assuming $this from incompatible context in /home/suehirogari/suehirogari.com/public_html/modules/user/preload/Primary/Primary.class.php on line 13
PICOモジュールのパンくずリストを自在に変更 pico_inc_breadcrumbs.html | 社内SEのウェブ制作

2010.05.24xoopsズープス

PICOモジュールのパンくずリストを自在に変更 pico_inc_breadcrumbs.html

picoのパンクズリストを下記のように変更。


サイトタイトル > モジュールタイトル > カテゴリ > (サブカテゴリ:あれば) >ページタイトル

 

<{if $mod_config.show_breadcrumbs}>
<!-- breadcrumbs -->
<div class="breadcrumbs"> ← <div class="pico_breadcrumbs"> Picoとbulletinで同じ表現にするために、変更
<a href="<{$xoops_url}>/"><{$xoops_sitename}></a>
 &nbsp;>&nbsp;
<a href="<{$mod_url}>/index.php"><{$xoops_dirname}></a>
 <{foreach from=$xoops_breadcrumbs key="i" item="bc"}>
 <{if $i > 0}>
&nbsp;>&nbsp;
 <{if $bc.url}>
<a href="<{$bc.url}>"><{$bc.name}></a>
 <{else}>
<{$bc.name}>
<{/if}>
<{/if}>
<{/foreach}>
</div>
<{/if}>

 

モジュールタイトルは表示したくない場合は・・・

<{if $mod_config.show_breadcrumbs}>
<!-- breadcrumbs -->
<div class="breadcrumbs">
<a href="<{$xoops_url}>/"><{$xoops_sitename}></a>

↓モジュール名部分ここから↓
<!--&nbsp;>&nbsp;
<a href="<{$mod_url}>/index.php"><{$xoops_dirname}></a>--> 
↑モジュール名部分ここまで↑
 <{foreach from=$xoops_breadcrumbs key="i" item="bc"}>
 <{if $i > 1}> ←  <{if $i > 1}> カテゴリー名でない  <{if $i > 0}> カテゴリー名でる
&nbsp;>&nbsp;
 <{if $bc.url}>
<{$content.subject}> ←ページタイトル
 <{else}>
<{$content.subject}> ←ページタイトル
<{/if}>
<{/if}>
<{/foreach}>
</div>
<{/if}>

 

smartyで取得している変数の確認方法

theme.htmlの 先頭に <{debug}> を記述すると、ポップアップでスマーティーウィンドウが出る。
(※xoopsのデバックモード)
※但し、HTMLの先頭がドキュメントタイプの指定ではないため、表示がくずれる可能性があります。


このカテゴリの人気記事



  • コメント (0)
  • トラックバック (0)
  • 閲覧 (23860)

トラックバック

トラックバックpingアドレス http://www.suehirogari.com/modules/blog/tb.php/34

コメントの投稿

コメント投稿に関するルール : コメントは全て承認が必要

キーワードでサイト内を検索
人気のエントリ