<mt:IfIsAncestor>

Conditional tag that is true when the category in context is an ancestor category of the specified 'child' attribute.

Attributes:

  • child (required)

    The label of a category in the current blog.

Example:

    <mt:IfIsAncestor child="Featured">
        (category in context is a parent category
        to a subcategory named "Featured".)
    </mt:IfIsDescendant>
This page was last updated on 2007-08-14, 21:15. [Edit]

1 Note

This tag and its partner, IfIsDescendant, should be listed under Category in the template tag reference as well. The nomenclature is inconsistent with the Sub- and ParentCategory names. Because of that, it took me a long time to find this tag and came upon it finally by accident. Please add the pair under Category on this page so others can find it.

Leave a note

Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.