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:EntryCategory
function tag will output the same value as themt:FolderLabel
function tag when used in the context of a page. Unlike themt:PageFolder
tag which is block tag and must be used with themt: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>