This question about Using an extension: Answered

Can I create a custom breadcrumbs root?

Hi,

I'm setting up a new wiki, and I want to create a custom breadcrumbs trail. The default breadcrumb trail looks something like this:

You are here: Foswiki>Main Web>WebHome

But I want it to look like this:

You are here: ETH Zurich>de Mello Group>Main Web>WebHome

Where "ETH Zurich" links to the ETH Zurich web page, http://ethz.ch, and "de Mello Group" links to http://demellogroup.ethz.ch, which is the root of our wiki.

Is this possible? If so, how do I do it?

-- DirkvanSwaay - 18 Jul 2011

Renaming Foswiki to de Mello Group is straight-forward. Just go to SitePreferences on your wiki and change the definition of WIKITOOLNAME to de Mello Group.

The second part is a bit harder. If you're using PatternSkin you have to overwrite the breadcrumb template as explained in this guide. The breadcrumb definition is set in templates/view.pattern.tmpl:

%TMPL:DEF{"breadcrumb:separator"}%<span class='foswikiSeparator'>&gt;</span>%TMPL:END%
%TMPL:DEF{"breadcrumb"}%%TMPL:P{"breadcrumb:title"}%%TMPL:P{"breadcrumb:wikitoolname"}%%TMPL:P{"breadcrumb:currentweb"}%%TMPL:P{"breadcrumb:parents"}%%TMPL:P{"breadcrumb:currenttopic"}%%TMPL:END%
%TMPL:DEF{"breadcrumb:parents"}%%META{"parent" nowebhome="on" prefix="%TMPL:P{"breadcrumb:separator"}%" separator="%TMPL:P{"breadcrumb:separator"}%" suffix=""}%%TMPL:END%
%TMPL:DEF{"breadcrumb:topic"}%<nop>%TOPIC%%TMPL:END%
%TMPL:DEF{"breadcrumb:title"}%<span class="patternHomePathTitle">%MAKETEXT{"You are here:"}% </span>%TMPL:END%
%TMPL:DEF{"breadcrumb:wikitoolname"}%[[%USERSWEB%.%HOMETOPIC%][%WIKITOOLNAME%]]%TMPL:END%

-- MartinKaufmann - 18 Jul 2011

QuestionForm edit

Subject Using an extension
Extension BreadCrumbsPlugin
Version Foswiki 1.1.3
Status Answered
Related Topics
Topic revision: r3 - 19 Jul 2011, MartinKaufmann
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy