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.