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 » Can't find value of an ezselection...

Can't find value of an ezselection datatype

Can't find value of an ezselection datatype

Wednesday 24 September 2003 11:14:47 am - 5 replies


I trying to display a list of objects containing a selection datatype value. I cannot find this value anywhere under data_map!!

{$node.0.data_map.myoptionlist.content} i.e seems to contain the index within the option list, I can't find it's 'real' value though!

Any clues?

Thursday 25 September 2003 11:49:34 am

Sorry to bother, but I need this!
Nobody ever displayed a selection value?? Noone?

Thursday 25 September 2003 11:51:54 am

Have you tried the usual:



Thursday 25 September 2003 1:34:29 pm

Well, that's another problem I have.
{$:item|attribute(show)} works but when I try to list any other objects/arrays below that, I get a blank site or a timeout:
{$:item.data_map|attribute(show)} -> blank site
{$:item.object|attribute(show)} -> timeout

BUT: I found it. Using {attribute_view_gui} made it! I was trying to access it with {$node.data_map.myoptionlist.xy}, which works for most datatypes, but not for selection!

Thanks Paul!

Thursday 25 September 2003 1:41:53 pm

I often find i resort to looking at the ez templates to see how they do it happy.gif Emoticon

Look at this:


This is the code used when {attribute_view_gui} is called.


Thursday 25 September 2003 5:53:29 pm

Yep, that I did, thinking "how the hell are they doing it" before I stopped realizing "shouldn't attribute_view_gui display just that ver template!? Yes, it should!

Too much computer work makes one so narrow-minded...


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

36 542 Users on board!

Forums menu

Proudly Developed with from