The category tag can be used as either a single or containing tag. It will display information of the category as defined by the name attribute, or the one currently being viewed. When used as a containing tag, it will turn the contents into a link to the category. Otherwise, it will return plain text.
May be used in any context.
The category tag has the following syntactic structure…
<txp:category />
Tag will accept the following attributes (case-sensitive):
Display specific category. Default is unset (use current category).
Available values: article, image, link, file. Default is article.
Whether to display category's title. Available values: 1 (yes) or 0 (no, display name). Default is 0 (no, display name).
Whether to display as link. Available values: 1 (yes) or 0 (no). Default is 0 (no).
Restricts category search to named section. Default is current section (for backwards compatibility).
Only link to articles from the current section. section attribute overrides this setting. Available values: 1 (yes) or 0 (no). Default is 0 (no).
(X)HTML class attribute, applied to wraptag. Default is unset.
(X)HTML tag (without brackets) to wrap around output. Default is unset.
<txp:category />
<txp:category link="1" />
<txp:category title="1" link="1" />
<txp:category name="articles" title="1" link="1" wraptag="p" />
<txp:category name="book">My books</txp:category>