Share » 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 2:14:47 am - 5 replies

Author Message

Thomas Brandl

Thursday 25 September 2003 2:49:34 am

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

Paul Forsyth

Thursday 25 September 2003 2:51:54 am

Have you tried the usual:

{$node.0.data_map.myoptionlist|attribute(show)}

paul

Thomas Brandl

Thursday 25 September 2003 4:34:29 am

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!
t

Paul Forsyth

Thursday 25 September 2003 4:41:53 am

I often find i resort to looking at the ez templates to see how they do it :)

Look at this:

design/standard/templates/content/datatype/view/ezselection.tpl

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

Paul

Thomas Brandl

Thursday 25 September 2003 8:53:29 am

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