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

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

eZ debug

Timing: Jan 19 2025 11:52:57
Script start
Timing: Jan 19 2025 11:52:57
Module start 'layout'
Timing: Jan 19 2025 11:52:57
Module start 'content'
Timing: Jan 19 2025 11:52:58
Module end 'content'
Timing: Jan 19 2025 11:52:58
Script end

Main resources:

Total runtime1.3645 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0130 589.1641152.6250
Module start 'layout' 0.01300.0042 741.789139.4609
Module start 'content' 0.01721.3460 781.2500533.0547
Module end 'content' 1.36320.0013 1,314.30478.1563
Script end 1.3645  1,322.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.2866160.0002
Check MTime0.00120.0893160.0001
Mysql Total
Database connection0.00430.316010.0043
Mysqli_queries1.306295.7274570.0229
Looping result0.00060.0457550.0000
Template Total1.287194.320.6436
Template load0.00230.168920.0012
Template processing1.284894.158720.6424
Template load and register function0.00030.019110.0003
states
state_id_array0.00310.225610.0031
state_identifier_array0.00410.302120.0021
Override
Cache load0.00180.1299180.0001
Sytem overhead
Fetch class attribute can translate value0.00060.047420.0003
Fetch class attribute name0.00110.082540.0003
XML
Image XML parsing0.00070.050120.0003
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00070.0516160.0000
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs