Tags:
create new tag
view all tags

Question

The PatternSkin templates include this code:

%TMPL:DEF{"breadcrumb"}%%{"breadcrumb:title"}%%TMPL:P{"breadcrumb:wikitoolname"}%%TMPL:P{"breadcrumb:currentweb"}%%META{"parent" nowebhome="on" prefix="%TMPL:P{"breadcrumb:separator"}%" suffix=""}%%TMPL:P{"breadcrumb:currenttopic"}%%TMPL:END%

which displays the breadcrumb trail.

I'd like to space out the parents of the trail, which I've tried by changing the meta search to

%META{"parent" nowebhome="on" prefix="%TMPL:P{"breadcrumb:separator"}%" suffix="" format="[[$web.$topic][%SPACEOUT{$topic}%]]"}%

However, when I execute this, the parent topic is not spaced out, as gets sent "$topic" and not the topic name. I'm not able to work out how to change the evaluation precedence so SPACEOUT evaluates after $topic is filled in.

How do I space out the parent topics?

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: NetBSD
Web server: Apache 1
Perl version: 5.8.0
Client OS: Mac OS X
Web Browser: Safari
Categories: Search

-- ChrisFLewis - 24 Jan 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.

Filed this as a bug.

The format needed to be changed to escape the SPACEOUT with $percnt, so $percntSPACEOUT{$topic}$percnt .

http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/Item5288

-- ChrisFLewis - 25 Jan 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-01-25 - ChrisFLewis
 
  • 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.