Forums / Developer / fetching attribute options

fetching attribute options

Author Message

Erlend Halvorsen

Sunday 02 July 2006 8:06:58 am

Is there an easy way to retrieve the options for an attribute? I have a guestbook, where you, for one of the fields, have to make a selection from a dropdown. I want to display a page with a graph over these options, like a poll result. For now, I have the graph and the guestbook form on the same page, so I just loop through the $object.data_map.*someattribute*.class_content.options array , but it would be nice not to have this dependency, if I want to move the result display later on.

-Erlend

Kristof Coomans

Tuesday 04 July 2006 3:59:46 am

You can fetch the options from the class attribute instead of the object attribute. Take a look at this reply: http://ez.no/community/forum/setup_design/filter_content_passing_values_from_url#msg81957.

I hope I understood your question right.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org