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
|