sending selection attribute into a variable [solved]

Author Message

ludo thomas

Thursday 17 November 2005 1:18:09 am

Hi ezCommunity..
How is it possible to send the content of a selection datatype into a variable?

for a text block, you can say:

{let myvar=$item.object.data_map.mytextBlock.content)}

But for a select???
for displaying it you can say

{attribute_view_gui attribute=$item.object.data_map.mySelection}

But I can't sending this value into a variable....

Please Help.
</code>

ludo thomas

Thursday 17 November 2005 2:48:24 am

solution is:

{let myvar=$item.object.data_map.attr_name.contentclass_attribute.content.options[$item.object.data_map.attr_name.content[0]].name

(not very easy, no?...)

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