<$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: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]

1 Note

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.