To alter classes

Author Message

riccardo refolo

Wednesday 02 February 2005 5:45:13 am

When I add a field to a class, with admin interface I can insert the image, file, text,... in the field that I added but in the site I don't have any effect.

To add an image in Articles, I add this code in design/admin/override/templates/article.tpl.

CODE:
{section show=$node.object.data_map.image.content}
<div class="attribute-image">
{attribute_view_gui attribute=$node.object.data_map.image
align=center}
</div>
{/section}

somebody have better suggest to remediate to this EZ bug?

Frederik Holljen

Wednesday 02 February 2005 5:55:59 am

When you add an attribute you must change the templates used on the user side to also include these new attributes. In your example you changed the template used in the administration interface. However, for the user side a different template is used (obviously.. it looks different, doesnt it?)
To see which template you have to use turn on debug output. If you look at the HTML source the names of the templates are included as HTML comments.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.