Forums / Developer / sending selection attribute into a variable [solved]

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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?...)