一番上の親ページのタイトルを表示

各ページの一番上の階層の親ページのタイトルのみを表示させたい場合は、パンくずリスト表示プラグインを導入して、
templates/internals/page/default.htmlまたはtemplates/header.html(ヘッダ・メニュー部分)に
<!--{foreach from=$plugin_page_topicpaths|smarty:nodefaults item='plugin_page_topicpath' name='page_topicpath'}-->
<!--{if $smarty.foreach.page_topicpath.first}-->
{$plugin_page_topicpath.title}<!-- 一番上の親ページのタイトル -->
<!--{/if}-->
<!--{foreachelse}-->
{$page.title}<!-- 親ページがなければ、そのページのタイトル -->
<!--{/foreach}-->
を入れる。

  • 最終更新:2016-06-18 08:14:39

このWIKIを編集するにはパスワード入力が必要です

認証パスワード