Forums / General / ezselection - how to display data
Łukasz Serwatka
Monday 06 December 2004 6:20:41 am
Hi,
One of my class attributes is ezselection datatype (no multiple choices)
{attribute_view_gui attribute=$node.object.data_map.attr_name} - this works, but I need add result of this {attribute_view_gui attribute=$node.object.data_map.attr_name}
to url
<a href={concat($DesignKeys:used.url_alias, "/(lang)/", $view_parameters.lang, "/(type)/", attribute_view_gui attribute=$:item.object.data_map.attr_name)|ezurl}>
I don`t know how?
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog
Monday 06 December 2004 11:38:28 pm
Nobody know how to do this?
Thanks for any help or suggestion.
Bruce Morrison
Tuesday 07 December 2004 12:01:55 am
I find it best to look at the data type view templates in the standard design to work out how these types of things work.
The file design/standard/templates/content/datatype/view/ezselection.tpl should give you some clues.
CheersBruce
My Blog: http://www.stuffandcontent.com/ Follow me on twitter: http://twitter.com/brucemorrison Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish
Tuesday 07 December 2004 12:05:00 am
Hi Bruce,
Yes, I aslo find this code, but I must use sections. Maybe is easily way to display this value? If not, I must use it :/
Tuesday 07 December 2004 2:55:01 am
This should do the trick:
<a href={concat($DesignKeys:used.url_alias, "/(lang)/", $view_parameters.lang, "/(type)/",$:item.object.data_map.attr_name.contentclass_attribute.content.options[$:item.object.data_map.attr_name.content[0]].name )|ezurl}>
Tuesday 07 December 2004 11:22:52 am
This is a key. I was close, but you was faster ;-)
Thank you for your help.
Greetings