<mt:CategoryNext>

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

If the current category has sub-categories, then CategoryNext will generate a link to the next 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 "News" then CategoryNext will link to "Events". If the current category is "Oakland" then CategoryNext will link to "Palo Alto".

Attributes:

  • show_empty

    Specifies whether categories with no entries assigned should be counted and displayed.

This page was last updated on 2007-09-14, 09:59.  

2 Notes

CategoryNext and CategoryPrevious do not seem to take you out of or into subcategories.

If the current category has subcategories, CategoryNext will link to the next category at the same level (the next sibling category), not the current category's first subcategory.

Similarly, if you're at the first or last subcategory, CategoryPrevious will not point to the parent category and CategoryNext won't point to the next parent category.

@Imabug - Thanks for your feedback. The documentation has been amended.

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.