breadcrumb navigation

Author Message

Amer Azzaz

Tuesday 03 January 2006 6:59:19 am

Any idea on how to display the breadcrumb navigation ?

Philip K.

Tuesday 03 January 2006 8:42:22 am

I use this code for my breadcrump navigation

It is displayed like this: Home / Site1 / Sub of Site 1 / ...

{section name=Path loop=$module_result.path}
    {section show=$Path:item.url}
        {section show=is_set($Path:item.url_alias)}
            <a class="bcrump" href={$Path:item.url_alias|ezurl} style="text-decoration: none;" title="{$Path:item.text|wash}">{$Path:item.text|wash}</a>&nbsp;/
        {section-else}
            <a class="bcrump" href={$Path:item.url|ezurl} style="text-decoration: none;" title="{$Path:item.text|wash}">{$Path:item.text|wash}</a>&nbsp;/
        {/section}
    {section-else}
        <span style="margin: 0px; font-size: 10px;">{$Path:item.text|wash}</span>
    {/section}
{section-else}
{/section}

Linux is like a wigwam; no windows, now gates, and apache inside!

Brian Gambill

Tuesday 03 January 2006 9:24:00 am

There is already a template for this that can be found in
/design/base/override/parts/path.tpl

It looks like:

<p>
{section name=Path loop=$module_result.path}
    {section show=$Path:item.url}
        {section show=is_set($Path:item.url_alias)}
            <a href={$Path:item.url_alias|ezurl}>{$Path:item.text|wash}</a> /
        {section-else}
            <a href={$Path:item.url|ezurl}>{$Path:item.text|wash}</a> /
        {/section}
    {section-else}
        {$Path:item.text|wash}
    {/section}
{section-else}
{/section}
</p>

I amde a copy of this in my design/xx/override/templates/parts, along with my customizations and include it in pagelayout.tpl with:

{include uri="design:parts/path.tpl"}

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 31 2025 06:23:40
Script start
Timing: Jan 31 2025 06:23:40
Module start 'layout'
Timing: Jan 31 2025 06:23:40
Module start 'content'
Timing: Jan 31 2025 06:23:40
Module end 'content'
Timing: Jan 31 2025 06:23:40
Script end

Main resources:

Total runtime0.0119 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 588.0234151.1953
Module start 'layout' 0.00440.0021 739.218836.6172
Module start 'content' 0.00650.0039 775.835990.2188
Module end 'content' 0.01040.0015 866.054733.9922
Script end 0.0119  900.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002218.6120140.0002
Check MTime0.00108.5940140.0001
Mysql Total
Database connection0.00075.670010.0007
Mysqli_queries0.001815.310030.0006
Looping result0.00000.076010.0000
Template Total0.00129.610.0012
Template load0.00087.054010.0008
Template processing0.00032.540010.0003
Override
Cache load0.00065.000010.0006
General
dbfile0.00021.922080.0000
String conversion0.00000.060040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs