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.

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. 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.

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 "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)

Ricardo Correia (26/11/2013 12:09 pm)

Svitlana Shatokhina, Ricardo Correia


Comments

There are no comments.