Display long name in template

Author Message

Andreas Kaiser

Monday 30 October 2006 2:26:06 am

I'm creating my first templates in eZ Publish. One is a dynamic menu and when I use the code:

{$:item.name}

to call the name of the item, the short name (instead of the long name of the item) is used.

How should I call the long name of the item?

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

Mark Marsiglio

Monday 30 October 2006 4:27:32 am

The short name is a special node "name" that is set as the identifier of the node.

The long name is usually a different attribute (most commonly a text line) that has to be called as an attribute.

I usually use something like:

{$node.object.data_map.name.content|wash()}

where "name" is the name of the attribute that contains the long name.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Andreas Kaiser

Monday 30 October 2006 7:38:38 am

Thanks it works!

I had to change a lot of fetches, but this way seo will be better in the template.

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

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