Forums / Developer / How to output a single select menu value
Tony Stark
Monday 16 February 2009 9:03:35 am
Hi,
I have an issue where I want to output a value of an object held in a "Selection" attribute *Single Choice). I have tried numerous ways I was sure which worked befire but none of them seem to be yielding any results?!
So, question is - how do I output a value from a single choice, selection attribute?!
Many thanks in advance....
Tony
justin kazadi
Monday 16 February 2009 11:32:35 pm
Hi tony,
if i well understand what you have says. you want to have the selected choise from the selection datatype.
try this code:
{$node.data_map.name_of__your_attribute.content.0} use $node if you are in an override template.
i think this could help you.
The theory is when we know everything and nothing works. The practice is when everything works and nobody knows why. If the practice and theory are met, nothing works and we do not know why. Albert Einstein
Pierre SCALFATI
Thursday 19 February 2009 5:52:47 am
I've been also using this, and it works also :
$node.data_map.name_of_your_attribute.data_text