DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Movable Type Navigation

02.18.2006
| 2823 views |
  • submit to reddit
        This will generate nested unordered lists of links to all category and sub-category archives that are descendants of the "Articles" category, but not a link to the "Articles" category itself. Requires the wonderful <a href="http://www.staggernation.com/mtplugins/Compare/">Compare</a> plugin.

<MTSubCategories>
<MTIfIsDescendant parent="Articles">
<MTIfEqual a="[MTCategoryLabel]" b="Articles">
<MTSubCatsRecurse>
<MTElse>
<MTSubCatIsFirst><ul class="leftnav"></MTSubCatIsFirst>
<li><strong><a href="<MTCategoryArchiveLink$>" title="<$MTCategoryDescription$>"><$MTCategoryLabel$></a><MTSubCatsRecurse></strong></li>
<MTSubCatIsLast></ul></MTSubCatIsLast>
</MTElse>
</MTIfEqual>
</MTIfIsDescendant>
</MTSubCategories>