Forums / Setup & design / Adding custom attributes to XML tags

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Adding custom attributes to XML tags

Author Message

Mauro Innocenti

Friday 07 April 2006 1:18:18 am

I want to specify some custom attributes for XML tags in XML block fields.
E.g.: in XML block field I want to put this code:

<ol class="myclass">
<li>..</li>
</ol>

and getting the same output when I view the object from the public site.

I tried to override the "ol.tpl" template with this code:

<ol class="{$class}">
{$content}
</ol>

but It don't worked.

I'm sure it is possible to obtain such result...

Mauro

Mauro Innocenti

Friday 07 April 2006 2:13:43 am

Solved...
The standard ol.tpl is working.