Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.



Sets which custom attributes that can be used within XML tags of this particular type.





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.


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:


Now, if you create a table using an XML code like this:

<table summary="The meaning of my favourite smiles">

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)


There are no comments.