Forums / General / name of path instead of id

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.

eZ debug

Timing: Jan 18 2025 14:56:08
Script start
Timing: Jan 18 2025 14:56:08
Module start 'content'
Timing: Jan 18 2025 14:56:09
Module end 'content'
Timing: Jan 18 2025 14:56:09
Script end

Main resources:

Total runtime1.1124 sec
Peak memory usage4,096.0000 KB
Database Queries208

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 587.7031180.8438
Module start 'content' 0.00620.9272 768.5469629.8359
Module end 'content' 0.93330.1790 1,398.3828337.0703
Script end 1.1123  1,735.4531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.3441210.0002
Check MTime0.00150.1336210.0001
Mysql Total
Database connection0.00070.065610.0007
Mysqli_queries1.006290.45362080.0048
Looping result0.00250.22262060.0000
Template Total1.079297.020.5396
Template load0.00200.183020.0010
Template processing1.077196.835020.5386
Template load and register function0.00020.021310.0002
states
state_id_array0.00170.150110.0017
state_identifier_array0.00100.092220.0005
Override
Cache load0.00180.1621350.0001
Sytem overhead
Fetch class attribute can translate value0.00110.097040.0003
Fetch class attribute name0.00150.134090.0002
XML
Image XML parsing0.00290.264440.0007
class_abstraction
Instantiating content class attribute0.00000.0028100.0000
General
dbfile0.01811.6305350.0005
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 7

Time used to render debug report: 0.0003 secs