August 14, 2007
MT4のカテゴリ表示タグ
MT3.3⇒4.0にアップグレードした際に、カテゴリメニューが表示されないトラブルがあったので、 そのトラブルシューティングについてメモしておきます。
従来のタグ
<MTSubCategories>
<MTSubCatIsFirst><ul></MTSubCatIsFirst>
<MTIfNonZero tag="MTCategoryCount">
<li><a href="<$MTCategoryArchiveLink$>" title="<$MTCategoryDescription$>"><MTCategoryLabel></a> [<$MTCategoryCount$>]
<MTElse>
<li><MTCategoryLabel>
</MTElse>
</MTIfNonZero>
<MTSubCatsRecurse max_depth="3">
</li>
<MTSubCatIsLast></ul></MTSubCatIsLast>
</MTSubCategories>
で、これを下記に直すと綺麗にツリー表示されました。
<MTTopLevelCategories>
<MTSubCatIsFirst><ul></MTSubCatIsFirst>
<MTIfNonZero tag="MTCategoryCount">
<li><a href="<$MTCategoryArchiveLink$>" title="<$MTCategoryDescription$>"><MTCategoryLabel></a> [<$MTCategoryCount$>]
<MTElse>
<li><MTCategoryLabel>
</MTElse>
</MTIfNonZero>
<MTSubCatsRecurse>
</li>
<MTSubCatIsLast></ul></MTSubCatIsLast>
</MTTopLevelCategories>
これでメニューにカテゴリー一覧が出るようになりました。
written by hijiri_KT
トラックバック
このエントリーのトラックバックURL:
http://mokyumokyu.net/cgi-bin/mt/mt-tb.cgi/498
コメント
Just killing some in between class time on Digg and I found your article . Not typically what I prefer to read about, but it was absolutely worth my time. Thanks.
投稿者 Online Banking Saftey : October 18, 2010 3:06 PM
Strange this post is totaly unrelated to what I was searching google for, but it was listed on the first page. I guess your doing something right if Google likes you enough to put you on the first page of a non related search. :)
投稿者 Online Banking Security : October 19, 2010 2:34 AM
I was just talking with my coworker about this last week at dinner . Don't remember how in the world we landed on the subject actually , they brought it up. I do recall eating a amazing steak salad with sunflower seeds on it. I digress...
投稿者 Bank online with Chase : October 19, 2010 9:46 AM
Greetings I am
投稿者 free iphone 4 : November 4, 2010 9:31 AM







