Forums / Install & configuration / crumbs path generation

crumbs path generation

Author Message

Gerhard Hoogterp

Thursday 20 February 2003 6:14:20 am

I vagualy remember reading a mail/page here somewhere where someone gave a sollution for generating a crumbs-path to the current page.
Something alike $node.path_identification_string but then with clickable items.

As I cannot find that code/page/message back, does anybody know what I'm talking about OR have a sollution? For now I only see a recursive sollution and as I'm still in a load of problems with simple sequences it's somewhat above my abbilities for now.

Thanks,
Gerhard

Karsten Jennissen

Thursday 20 February 2003 7:29:42 am

> I vagualy remember reading a mail/page here somewhere where
> someone gave a sollution for generating a crumbs-path to the
> current page.
> Something alike $node.path_identification_string but then
> with clickable items.
>
> As I cannot find that code/page/message back, does anybody
> know what I'm talking about OR have a sollution? For now I
> only see a recursive sollution and as I'm still in a load of
> problems with simple sequences it's somewhat above my
> abbilities for now.
>
> Thanks,
> Gerhard

Hi,

whats a crumbs path?

Karsten

Paul Borgermans

Thursday 20 February 2003 7:35:24 am

> > I vagualy remember reading a mail/page here somewhere
> where
> > someone gave a sollution for generating a crumbs-path to
> the
> > current page.
> > Something alike $node.path_identification_string but
> then
> > with clickable items.
> >
> > As I cannot find that code/page/message back, does
> anybody
> > know what I'm talking about OR have a sollution? For now
> I
> > only see a recursive sollution and as I'm still in a load
> of
> > problems with simple sequences it's somewhat above my
> > abbilities for now.
> >
> > Thanks,
> > Gerhard
>
> Hi,
>
> whats a crumbs path?
>
> Karsten

A navigation concept.

Something like

/ people > those who eat bread > and drop the crumbs to find their way back > Karsten

where you can click on the items to go "up" one or more levels. It also makes visible where you are and how you got there. Hence the "breadcrumbs" like in the classic fairy tale (Hans en Grietje in Dutch/Femish)

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Gerhard Hoogterp

Thursday 20 February 2003 11:16:15 am

> where you can click on the items to go "up" one or more
> levels. It also makes visible where you are and how you got
> there. Hence the "breadcrumbs" like in the classic fairy
> tale (Hans en Grietje in Dutch/Femish)

The story which I, purely coincidential, read to my children tonight..;)

For me it is a major piece of two concepts which I find very important within usability. The first is the navigational part. Imho navigation consists out of 3 pieces, where am I, how did I come here and where can I go. Crumbs solve the second item.

The second use is that it enables the user to learn about the overal structure of the site. With every use, the site becomes more charted territory and less undiscovered land.

Anyhow, my problem is that it's easy to find the parent of the current node.. So till 3 levels (root/parent/current) deep it's easy, but after that the problems start.
In PHP I would simply make a do {} while loop and keep a pointer until it reaches the root. But how to do something like that in the template language. I thought I saw a sollution here somewhere, but cannot find it back..

So if anyone has a sollution/pointer..

Gerhard

Bruce Morrison

Thursday 20 February 2003 2:18:13 pm

> > where you can click on the items to go "up" one or more
> > levels. It also makes visible where you are and how you
> got
> > there. Hence the "breadcrumbs" like in the classic fairy
> > tale (Hans en Grietje in Dutch/Femish)
>
> The story which I, purely coincidential, read to my children
> tonight..;)
>
> For me it is a major piece of two concepts which I find very
> important within usability. The first is the navigational
> part. Imho navigation consists out of 3 pieces, where am I,
> how did I come here and where can I go. Crumbs solve the
> second item.
>
> The second use is that it enables the user to learn about
> the overal structure of the site. With every use, the site
> becomes more charted territory and less undiscovered land.
>
> Anyhow, my problem is that it's easy to find the parent of
> the current node.. So till 3 levels (root/parent/current)
> deep it's easy, but after that the problems start.
> In PHP I would simply make a do {} while loop and keep a
> pointer until it reaches the root. But how to do something
> like that in the template language. I thought I saw a
> sollution here somewhere, but cannot find it back..
>
> So if anyone has a sollution/pointer..

I'm guessing you are looking for something like this...

{section name=Path loop=$module_result.path offset=2 show=eq($DesignKeys:used.viewmode,'full')}
{section show=$Path:item.url}
<a class="small" href={$Path:item.url|ezurl}>{$Path:item.text}</a>
{section-else}
<span class="small">{$Path:item.text}</span>
{/section}

{delimiter}
<span class="small">/</span>
{/delimiter}
{section-else}
{section name=Path loop=$module_result.path}
{section show=$Path:Path:item.url}
<a class="small" href={$Path:item.url|ezurl}>{$Path:Path:item.text}</a>
{section-else}
<span class="small">{$Path:Path:item.text}</span>
{/section}

{delimiter}
<span class="small">/</span>
{/delimiter}
{/section}
{/section}

...taken from the demo templates.

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Gerhard Hoogterp

Friday 21 February 2003 1:47:37 am

> ...taken from the demo templates.

Thanks! I knew I had seen it somewhere..

Stephan Brezinsky

Saturday 21 February 2004 10:35:03 am

oops, nevermind.

eZ debug

Timing: Jan 18 2025 05:10:22
Script start
Timing: Jan 18 2025 05:10:22
Module start 'content'
Timing: Jan 18 2025 05:10:22
Module end 'content'
Timing: Jan 18 2025 05:10:22
Script end

Main resources:

Total runtime0.6379 sec
Peak memory usage4,096.0000 KB
Database Queries212

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 591.3438180.8359
Module start 'content' 0.00820.5144 772.1797716.7578
Module end 'content' 0.52260.1153 1,488.9375341.0938
Script end 0.6378  1,830.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.6441210.0002
Check MTime0.00160.2450210.0001
Mysql Total
Database connection0.00160.252510.0016
Mysqli_queries0.537084.17462120.0025
Looping result0.00200.30822100.0000
Template Total0.610195.620.3051
Template load0.00230.364620.0012
Template processing0.607895.273120.3039
Template load and register function0.00010.018210.0001
states
state_id_array0.00050.086010.0005
state_identifier_array0.00100.157020.0005
Override
Cache load0.00230.36061290.0000
Sytem overhead
Fetch class attribute can translate value0.00110.173860.0002
Fetch class attribute name0.00100.149590.0001
XML
Image XML parsing0.00180.280660.0003
class_abstraction
Instantiating content class attribute0.00000.002490.0000
General
dbfile0.00200.3128340.0001
String conversion0.00000.000930.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
10content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 33
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs