ez.no / exponential / documentation / customization / components / datatypes / ezxmltext / classification
Most tags in the eZXMLText datatype supports classification. This means that you can have different variants of the tags.
E.g. you can have two variants of the table tag, one plain and one spec. The spec variant of the tag could show every other row in a different colour.
You can pass an extra parameter to the tag to specify the classification you would like to use.
<table class="scientific"> <tr> <td> </td> </tr> </table>
The classification variable is then available in the template for the given tag as the variable {$classification}.
You can also use the override system to create an override for the tag based on the classification. This is defined in override.ini
[scientific_table] Source=content/datatype/view/ezxmltags/table.tpl MatchFile=scitable.tpl Subdir=templates Match[classification]=scientific
The classification can be compared with, but is not the same, as CSS classes.
Log in or create a user account to comment.
Comments