Forums / Developer / Design : how to get an option attribute value ?

Design : how to get an option attribute value ?

Author Message

Frédéric REITZ

Thursday 24 June 2010 5:59:55 am

Hi,

I've tried to add an 'options' attribute to the event class.

Attribute identifier is 'category'.

3 option values added.

When I fetch events and want to display ones category, I use $event.data_map.category.value. But it's empty.

Also tried tyo find out where the option value could be (hell) stored.

In vain.

Finally decided to create a list_element class, stored my options in a folder called 'events_categories' as list_element items, then linked them as 'relation object' to events items (because relation objectS doesn't work either).

I guess it's not the best method, but how should I get the option values ?

data_map sub objects ?

thanks for help.

Fwed

Gaetano Giunta

Thursday 24 June 2010 7:23:06 am

$event.data_map.category.content might be what you are looking for

Principal Consultant International Business
Member of the Community Project Board