ezselection - how to display data

Author Message

Ł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

Łukasz Serwatka

Monday 06 December 2004 11:38:28 pm

Nobody know how to do this?

Thanks for any help or suggestion.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Łukasz Serwatka

Tuesday 07 December 2004 12:05:00 am

Hi Bruce,

The file 
design/standard/templates/content/datatype/view/ezselection.tpl 
should give you some clues.

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 :/

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Bruce Morrison

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}>

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Łukasz Serwatka

Tuesday 07 December 2004 11:22:52 am

Hi Bruce,

This is a key. I was close, but you was faster ;-)

Thank you for your help.

Greetings

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.