This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » General » getting the value out of a selection...

getting the value out of a selection datatype

getting the value out of a selection datatype

Friday 24 September 2010 10:59:02 am - 2 replies

Hello all, i am really struggling with getting the value out of the selection datatype into my template.

So far i have the following code. where briefing_area is the name of the selection datatype.


all this prints out on screen is array although there is only one value inside the selection.

does anyone have a idea how i can get the string value out of the datatype.



Friday 24 September 2010 11:19:31 am


If you are can't do it, let ez do it in your place blunk.gif Emoticon.

there are a magic template operator attribute_view_gui, you can use it with every attribute, specially with complex one, like your selection.

the syntax is :

{attribute_view_gui  attribute=$node.data_map.briefing_area}

(for more information look at the template : /design/standard/templates/content/datatype/view/ezselection.tpl, the operator template attribute_view_gui will use it to display attribute selection)


Friday 24 September 2010 11:23:04 am


thank you very much Abdelkader.

that works a treat big-smile.gif Emoticon


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

36 542 Users on board!

Forums menu

Proudly Developed with from