<mt:CategoryPrevious>

A container tag which creates a category context of the previous category relative to the current entry category or archived category.

If the current category has sub-categories, then CategoryPrevious will generate a link to the previous sibling category. For example, in the following category hierarchy:

    News
        Gossip
        Politics
        Sports
    Events
        Oakland
        Palo Alto
        San Francisco
    Sports
        Local College
        MBA
        NFL

If the current category is "Events" then CategoryPrevious will link to "News". If the current category is "San Francisco" then CategoryPrevious will link to "Palo Alto".

Attributes:

  • show_empty

    Specifies whether categories with no entries assigned should be counted.

Example:

    <mt:CategoryPrevious>
        <a href="<$mt:ArchiveLink archive_type="Category"$>"><$mt:CategoryLabel$></a>
    </mt:CategoryPrevious>
This page was last updated on 2008-04-14, 22:28.  

Leave a note

Have a question, please use the MT Forums. Notes sumbitted here should pertain to tips & hints regarding documentation. Your note may be removed once it's contents has be integrated into the body of the page.