Display an attribute of a data type

Display an attribute of a data type

Tuesday 20 May 2008 2:46:22 am - 1 reply

Author Message

Maxime Thomas

Wednesday 21 May 2008 11:41:16 pm

Hi Albe,

A small explanation : the attribute_view_gui is a template function which allows you to automatically load a generic template for this attribute. It takes in argument the object attribute. Each nodes have a data_map array which is containing the attributes object which compose it.
So, to correct your code :

{$node.data_map.image.content.alternative_text|wash(xhtml)}

If you want to see what is inside an array or an object you can use :

{$node|attribute(show,1)}

Hope it helps.

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

You must be logged in to post messages in this topic!

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