CustomAttributes
Summary
Sets which custom attributes that can be used within XML tags of this particular type.Usage
CustomAttributes[]=attribute1
CustomAttributes[]=attribute2
...
Description
This setting makes it possible to specify which custom attributes that can be used within XML tags of the "name_of_XML_tag" type. (From 3.9, custom attributes are supported for all XML tags.) It is an array of custom attribute names. If empty, the system will not allow the use of custom attributes within XML tags of the "name_of_XML_tag" type.
Examples
Example 1
If you wish to use a specific summary field in your tables, you can add a custom attribute called "summary" to the "table" XML tag by adding the following lines to the [table] section of your "content.ini.append.php" file:
CustomAttributes[] CustomAttributes[]=summary
Now, if you create a table using an XML code like this:
<table summary="The meaning of my favourite smiles"> ... </table>
and put the following code into an override template for the "content/datatype/view/ezxmltags/table.tpl" template:
summary: {$summary}
the following output will be produced: "summary: The meaning of my favourite smiles".
Svitlana Shatokhina (02/07/2007 1:57 pm)
Svitlana Shatokhina (19/07/2007 11:00 am)
Comments
There are no comments.