category2
From Textbook
<txp:category2 />
The category2 tag can be used as either a single tag or container tag. It will display information of the category as defined by Cat2 of the article being displayed. When used as a containing tag, it will turn the contents into a link to that category. Otherwise, it will return plain text.
This tag may be used within either an article form, or in a page, wrapped in an if_individual_article conditional tag.
Contents |
Attributes
Tag will accept the following attributes (case-sensitive):
- title="boolean"
- Whether to output category title, rather than name.
- Values:
1(yes) or0(no, output name). - Default:
0. - link="boolean"
- Whether to link to articles from the same category.
- Values:
1(yes) or0(no). - Default:
0). - section="section name"
- Only link to articles from the specified section.
- Default: unset.
- this_section="boolean"
- Whether to only link to articles from the section containing the current article.
- Values:
1(yes) or0(no, allow from any section). - Default:
0. - class="class name"
- (X)HTML class attribute to be applied to
wraptag. - Default: unset.
- wraptag="tag"
- (X)HTML tag (without brackets) to wrap around output.
- Default: unset.
Examples
Example 1: Category name in plain text
<txp:category2 />
Example 2: Hyperlinked category title
<txp:category2 link="1" title="1" />
If category2 is "General", this tag will display the word "General" as a hyperlink to a list of articles in the same category.
Example 3: Container example
<txp:category2>Other articles in category <txp:category2 title="1" /></txp:category2>
Genealogy
Version 4.0.4
-
class,section,this_section,wraptagadded.




