<mt:IfFolder>

A conditional tag used to test for the folder assignment for the page in context, or generically to test for which folder is in context.

Attributes:

  • name (or label; optional)

    The name of a folder. If given, tests the folder in context (or folder of an entry in context) to see if it matches with the given folder name.

Example:

    <mt:IfFolder name="News">
        (current page in context is in the "News" folder)
    </mt:IfFolder>
This page was last updated on 2007-08-17, 17:05.

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.