name of path instead of id

Author Message

twix twix

Sunday 24 April 2005 3:14:43 am

this code display the id of path
but i want the name instead of id, can i have a help

{section var=path  loop=$node.path_array offset=2 }
                    {$path} >		
	{/section}

Ekkehard Dörre

Sunday 24 April 2005 8:37:19 am

Hi,

search your templates for path.tpl, you'll find the breadcrumb navi with the path.

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

twix twix

Tuesday 26 April 2005 3:49:25 am

i checked
but i can't solve my problem
any solution?

Łukasz Serwatka

Tuesday 26 April 2005 4:09:50 am

Hi,

Have you tried this?
http://ez.no/ez_publish/documentation/customization/custom_design/examples/creating_a_navigation_path

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

twix twix

Wednesday 27 April 2005 3:09:42 pm

yes i tried this code

if you see, the code i wrote was display the id of path in array
when i try to extract the name no output
i used this code after that but i can't complete in right way

{let child=fetch{content, list, hash(node_id, $path)}
{$path.item.name}
{/let}

with no output?

Łukasz Serwatka

Wednesday 27 April 2005 11:35:32 pm

This code display path, base on your example from first post:

	{section loop=$node.path_array offset=2}
		{let node_name=fetch( content, node, hash( node_id, $item ) )}
			{$node_name.name}
		{/let}
		{delimiter}
			>
		{/delimiter}
	{/section}

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

twix twix

Thursday 28 April 2005 3:29:20 am

it's work
realy i can't thank you
thank you alot.

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 18 2025 18:42:48
Script start
Timing: Jan 18 2025 18:42:48
Module start 'layout'
Timing: Jan 18 2025 18:42:48
Module start 'content'
Timing: Jan 18 2025 18:42:49
Module end 'content'
Timing: Jan 18 2025 18:42:49
Script end

Main resources:

Total runtime0.6010 sec
Peak memory usage4,096.0000 KB
Database Queries71

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 589.0391152.6250
Module start 'layout' 0.00480.0026 741.664139.4453
Module start 'content' 0.00730.5924 781.1094624.7578
Module end 'content' 0.59970.0012 1,405.867216.1641
Script end 0.6010  1,422.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.5049160.0002
Check MTime0.00120.2023160.0001
Mysql Total
Database connection0.00070.108710.0007
Mysqli_queries0.540989.9976710.0076
Looping result0.00070.1168690.0000
Template Total0.571995.220.2860
Template load0.00190.323620.0010
Template processing0.570094.834320.2850
Template load and register function0.00020.039910.0002
states
state_id_array0.00100.172010.0010
state_identifier_array0.00070.122120.0004
Override
Cache load0.00220.3705350.0001
Sytem overhead
Fetch class attribute can translate value0.00060.104030.0002
Fetch class attribute name0.00200.340690.0002
XML
Image XML parsing0.00130.212830.0004
class_abstraction
Instantiating content class attribute0.00000.0034100.0000
General
dbfile0.00090.1560240.0000
String conversion0.00000.001340.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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
3content/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: 30
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs