[daisy] Breadcrumbs in wiki

Reinhard Poetz reinhard at apache.org
Fri Oct 27 10:16:37 CDT 2006


Paul Focke wrote:
> Bogguard wrote:
>> Hello,
>>
>> i was wondering if it was possible to add breadcrumbs in the top of 
>> every page
>> so you can easily navigate back from where you came from?
>>
>> With kind regards,
>> Bogguard
> Hi,
> 
> It all depends on what you understand under the term breadcrumbs.  If 
> you just wish to display all the parents of the current active 
> navigation node then its just a question of running the navigation tree 
> through some xsl templates.
> You would start by editing the layout.xsl.  There you have a variable 
> 'navigationTree'.  To know what the current active node is just do a 
> select of  $navigationTree//n:doc[@active='true'].
> If you really want to show the last n pages visited then that's a 
> question of displaying the browser history, which might be done using 
> some javascript.  Of course you could also just use the back button ;-)

Unfortunatly that's not always that easy. Especially if you edited some of the 
previous pages.

-- 
Reinhard Pötz           Independent Consultant, Trainer & (IT)-Coach 

{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                        web(log): http://www.poetz.cc
--------------------------------------------------------------------


More information about the daisy mailing list