<mt:EntryIfCategory>

Deprecated: This tag has been deprecated in favor of mt:IfCategory.

Returns true if the current page or entry belongs to the designated category.

Attributes

An attribute of label is required.

label

Label of the Category being conditioned.

name

Alias of label

Example

<mt:EntryIfCategory label="News">
  <!- do something ->
<mt:else>
  <!- do something else ->
</mt:EntryIfCategory>
This page was last updated on 2009-07-08, 12:53.

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.