CustomAttributes
Summary
Sets which custom attributes that can be used within paragraph 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 paragraph tags. (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 "paragraph" type.
Also, note that before being able to specify CustomAttributes for a given custom tag, the tag needs to be defined in the AvailableCustomTags[] list.
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:
[CustomTagSettings] AvailableCustomTags[]=paragraph [paragraph] 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 "templates/content/datatype/view/ezxmltags/table.tpl" template:
summary: {$summary}
the following output will be produced: "summary: The meaning of my favourite smiles".
Ricardo Correia (20/02/2013 12:43 pm)
Ricardo Correia (26/11/2013 12:10 pm)
Comments
There are no comments.