Question
I'm trying to modify the default breadcrumb shown at the top of each TWiki page. What I can't figure out is how to get rid of the revision history that is displayed. For example, in
LUMS WEB > LUMSTopic (26 March 2008
CraigAumann)
how does one get rid of "(26 March 2008 Craig Aumann)"
I have successfully got rid of the "TWiki Root" using a topic template:
%TMPL:DEF{"breadcrumb"}%%TMPL:P{"breadcrumb:currentweb"}%%META{"parent" nowebhome="on" prefix="%TMPL:P{"topicpathseparator"}%" suffix=""}%%TMPL:P{"breadcrumb:currenttopic"}%%TMPL:END
But can't figure out where the stuff in brackets is comming from.
Thanks!
Environment
--
CraigAumann - 27 Mar 2008
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
I wanted this too, especially since the same information appears in the footer in 4.2. But when I searched, all I found was your question. Oh well
Edit
\twiki\templates\view.pattern.tmpl (after backing it up of course) to remove the colored text:
%TMPL:DEF{"breadcrumb:annotation"}%%IF{"defined rev" then=" %MAKETEXT{"(revision [_1])" args="%URLPARAM{"rev"}%"}%" else=" <span class='patternRevInfo'>(%REVINFO{format="$date, $wikiusername"}%)</span>"}%%IF{"defined raw" then=" %MAKETEXT{"(raw view)"}%"}%%TMPL:END%
BTW, another way to remove TWiki from the root of the breadcrumb is to remove (in the same file):
%TMPL:DEF{"breadcrumb:wikitoolname"}%[[%MAINWEB%.%HOMETOPIC%][%WIKITOOLNAME%]]%TMPL:P{"breadcrumb:separator"}%%TMPL:END%
--
SeanCMorgan - 08 Apr 2008
Thanks! What I did is incorporate this into a "TopicTemplate" file, as I only want these changes in a particular web, and not all webs.
--
CraigAumann - 18 Apr 2008