Breadcrumb's problem : please help!

Author Message

SathishKumar Subramanian

Thursday 08 January 2004 11:12:17 pm

Hi,
In breadcrumb , the $module_result.path is not providing the path array. How can I get?

I using the following code to show the breadcrumb in my page. If my current page is the homepage (Node:115) then I am not showing the breadcrumb.

{section show=ne($node.node_id,115)}
<a href="/">Home</a>
{section name=Path loop=$module_result.path offset=1 max=-1}
<span style="color: black"> > </span> <a href={$Path:item.url|ezurl}>{$Path:item.text}</a>
{/section}
{/section}

Please help to solve this. Thanx in advance! :)

Sathizh

Claus Jensen

Friday 09 January 2004 1:42:10 am

Hello,
Have you looked in the page_toppath.tpl for tips? Its the default "crumb-maker" for ez. But personally I think you are not in the correct namespace. First you have a section without any name, and inside this you have another one with name=Path. So you're code should not be $Path:item.text, but $:Path:item.text...i believe.

see this:http://ez.no/developer/ez_publish_3/documentation/development/libraries/ez_template/basics/namespaces_

--added:
Also you might check for $module_result.path value by doing a {$module_result.path|attribute(show)}

cheers,
claÜs

SathishKumar Subramanian

Friday 09 January 2004 3:09:53 am

Hi,

Thanks for your reply. I had checked that page_toppath.tpl . Also in my breadcrumb code I tried to get path details using the namespace correction and tried with {$module_result.path|attribute(show)} to get $module_result details. But not succeeded.
current code :

{section show=ne($node.node_id,115)}
<a href="/">Home</a>
{section name=Path loop=$module_result.path offset=1 max=-1}
<span style="color: black"> > </span> <a href={$:Path:item.url|ezurl}>{$:Path:item.text}</a>
{/section}
{/section}

But while using the following code I can get the actual folder paths

{section show=is_set($DesignKeys:used.node)}
{let node=fetch(content,node,hash(node_id,$DesignKeys:used.node))}
{section name=Node loop=$node.path_array}
{section-exclude match=array(1,2)|contains($:item)} {* Skip root nodes *}
{* Replace the next line with something that fetches translations *}
{fetch(content,node,hash(node_id,$:item)).name}
{/section}
{/let}
{section-else}
{* Show normal path *}
{/section}

Could you please provide additional info to get the breadcrumbs?

Sathizh

Paul Forsyth

Thursday 18 March 2004 9:43:46 am

Which template are you using to write your breadcrumbs with? Is it a template override?

paul

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 22:13:24
Script start
Timing: Jan 18 2025 22:13:24
Module start 'layout'
Timing: Jan 18 2025 22:13:24
Module start 'content'
Timing: Jan 18 2025 22:13:25
Module end 'content'
Timing: Jan 18 2025 22:13:25
Script end

Main resources:

Total runtime0.8340 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.0391152.6250
Module start 'layout' 0.00630.0038 741.664139.4453
Module start 'content' 0.01010.8225 781.1094521.8516
Module end 'content' 0.83270.0013 1,302.960912.1563
Script end 0.8340  1,315.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3959160.0002
Check MTime0.00130.1504160.0001
Mysql Total
Database connection0.00100.117510.0010
Mysqli_queries0.767191.9839620.0124
Looping result0.00080.0997600.0000
Template Total0.785894.220.3929
Template load0.00250.299820.0013
Template processing0.783393.920820.3916
Template load and register function0.00020.023110.0002
states
state_id_array0.00130.160210.0013
state_identifier_array0.00110.129320.0005
Override
Cache load0.00210.2530500.0000
Sytem overhead
Fetch class attribute can translate value0.00050.063030.0002
Fetch class attribute name0.00090.108040.0002
XML
Image XML parsing0.00040.046030.0001
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00420.5024100.0004
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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs