Forums / General / Problem with displaying folder name

Problem with displaying folder name

Author Message

Bojan S

Wednesday 23 January 2008 7:36:53 am

Hi,

I'm using eZ Publish 4.0. I'm trying do display name of folder on the page. Instead of that, on the page short name displays.
e.g. Name of folder is "About Us" and short name is "about_us". Template code:

{def $nodes=fetch( 'content', 'tree',
                   hash( 'parent_node_id', 2 , depth, 2, class_filter_type, include, class_filter_array, array( 'folder' ), sort_by,  array( 'priority', true() )) )}
				   		   
        {foreach $nodes as $node}
		{$node.name|wash()}
	{/foreach}	

On the page appears "about_us".

How can I display "Name" attribute ?

Thanks

Kristof Coomans

Thursday 24 January 2008 12:30:29 am

Hi Bojan, and welcome to the eZ Community!

Use this:

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

This is explained in the documentation, here you go: http://ez.no/doc/ez_publish/technical_manual/4_0/templates/information_extraction/outputting_node_and_object_data

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

Bojan S

Thursday 24 January 2008 5:27:33 am

Thanks Kristof