<$mt:EntryCategory$>
This tag outputs the label of the main category for the entry.
<$mt:EntryCategory$>
Must be used in an entry context (entry archive or mt:Entries loop).
All entry categories can be listed using mt:EntryCategories loop tag.
Examples ΒΆ
Create a link to the Category archive of the entry’s main category (when in entry context):
<a href="<$mt:EntryLink type="Category"$>"><$mt:EntryCategory$></a>
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>

Beau Smith
February 25, 2009 3:10 PM | Reply
Link to the category using the EntryLink tag: