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

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.