<$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:EntryCategoryfunction tag will output the same value as themt:FolderLabelfunction tag when used in the context of a page. Unlike themt:PageFoldertag which is block tag and must be used with themt:FolderLabeltag.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>

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.