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.

Comments

Log in or create a user account to comment.

Contents

Customization

Access control
Exponential API Documentation
Content structure
Custom design
Components
    Images
    Datatypes
       eZXMLText
          Custom tags
          Tags
          Classification
       eZKeyword
       eZObjectRelation
    Shop
    Information collection
    Search
    Form processing
    Error handling
    Icons
    Menus
    Toolbars
Tips & Tricks
Troubleshooting


Created

29/07/2003
1:53:17 pm
by B�rd Farstad

Last updated

02/02/2004
9:34:54 pm
by Bj�rn Dieding@xrow.de

Authors

B�rd Farstad
Bj�rn Dieding@xrow.de



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.