Share » Forums » Setup & design » Accessing a particular var in loop

Accessing a particular var in loop

Accessing a particular var in loop

Tuesday 22 March 2005 5:02:40 pm - 3 replies

Modified on Tuesday 22 March 2005 10:50:15 pm by Jacob C

Author Message

Łukasz Serwatka

Tuesday 22 March 2005 11:02:32 pm

Hi,

Have you tried this? What data type is $node.object.data_map.size.content?

{section loop=$node.object.data_map.size.content}
    {$node.object.data_map.size.class_content.options.[$item].name}
{/section}

You can use "attribute" to displays all attributes of $size variable

{section var=size loop=$node.object.data_map.size.content}
    {$size|attribute}
{/section}

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Jacob C

Wednesday 23 March 2005 9:57:14 am

Hi Lukasz,

What you posted has worked. It is a 'Selection' datatype. Thanks for the response and I'm sure I'll be posting another question again soon ;-)

Jacob

Łukasz Serwatka

Wednesday 23 March 2005 1:59:14 pm

Hi Jacob,

My pleasure!

If you find person with similar problem just pass the tip ;-)

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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

36 542 Users on board!

Forums menu