Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Red Hat EL 5
Web server: Apache 2.2.3-11
Perl version: 5.8.8
Client OS: Red Hat
Web Browser: Firefox
Categories: Skin

-- CraigAumann - 27 Mar 2008

Answer

ALERT! 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 smile

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

Change status to:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2008-04-18 - CraigAumann
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.