<$mt:CategoryLabel$>

The label of the category in context. The current category in context can be placed there by either the following contexts (in order of precedence):

  • the current category you might be by looping through a list of mt:Categories
  • the current category archive template/mapping you are in
  • the primary category of the current entry in context

Example ΒΆ

List all Category Labels linked their respective category archives:

<ul>
<mt:Categories>
    <li>
        <a href="<$mt:ArchiveLink type="Category"$>"><$mt:CategoryLabel$></a>
    </li>
</mt:Categories>
</ul>

Tip: Due to legacy taging the mt:EntryCategory function tag will output the same value as the mt:FolderLabel function tag when used in the context of a page. Unlike the mt:PageFolder tag which is block tag and must be used with the mt:FolderLabel tag.

Use this mtml

 <mt:If tag="EntryCategory" eq="Appendix: Configuration Directives">
     This main folder for this page is "Appendix: Configuration Directives".
     Confirmation using `mt:EntryCategory`: "<$mt:EntryCategory$>".
 </mt:If>
This page was last updated on 2009-11-02, 14:06. [Edit]

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.