ムーバブルタイプで自動で「パン屑リスト」を生成
ムーバブルタイプで、CMSを導入を制作する場合に、自動で「パン屑リスト」を生成する場合のタグを書いておきます。
簡単なタグの記述なんですが、結構悩んだので、悩むかたも多いかなと思い、書いておきました。
下記をそれぞれのテンプレートに差し込むことで、自動で「パン屑リスト」を生成できます。
エントリー・アーカイブのテンプレート
<a href="<$MTBlogURL$>">メインページへ</a>
> <MTParentCategories glue="">
<MTIfNonZero tag="MTCategoryCount"><a href="<$MTCategoryArchiveLink$>" title="<$MTCategoryLabel$>"><$MTCategoryLabel$>
</a><MTElse><$MTCategoryLabel$></MTElse></MTIfNonZero>
> </MTParentCategories><a href="<$MTEntryPermalink$>"><$MTEntryTitle remove_html="1"$></a>
カテゴリー・アーカイブのテンプレート
<a href="<$MTBlogURL$>">メインページへ</a>
> <MTParentCategories glue=" > ">
<MTIfNonZero tag="MTCategoryCount"><a href="<$MTCategoryArchiveLink$>" title="<$MTCategoryLabel$>"><$MTCategoryLabel$>
</a><MTElse><$MTCategoryLabel$></MTElse>
</MTIfNonZero></MTParentCategories>
« カテゴリーの番号を出力する、cutlastcharプラグイン | メインページへ | 最近のエンジン、内部要因30%:外部要因70% »
コメントを投稿