<we:ifCat>
Since version: 2.0 | Requires endtag: yes
Description
This tag is used to enclose a section of template code that will only be displayed if the webEdition document being created is assigned a particular category. Catgories are assigned in the "Properties" tab of a document. This tag is useful when creating multi-purpose templates that change their appearance depending on their intended use.
Attributes
categories
Default value: - | since version: 2.0 | required: yes
Set this attribute to the name or names of the category or categories to check against. Multiple categories should be written as a comma seperated list.
doc
Default value: - | since version: 3.0.0.0 | required: no
If the attribute is set to doc="top" or not set, the query refers to the main page, even if the tag is within an included file which is included in the main page. If the attribute is set to doc="self", the query refers to the file in which the tag is located.
Allowed values:
- top
- self
- listview
parent
Default value: - | since version: 3.0.0.0 | required: no
If this attribute is set to "true" and you set the attribute "categories" e.g. "/sports", the query refers both to "/sports/football" and "/sports/tennis". If the attribute is set to "false", the query refers only to the exact value given in the attribute "categories".
Allowed values:
- true
- false
Syntax
<we:ifCat categories="attribute" [doc="top|self|listview"] [parent="true|false"]> ... </we:ifCat>