Tags:
create new tag
view all tags

SID-01440: Variable expansion etc. in TOC{"Topic"}

Status: Answered Answered TWiki version: 5.1.1 Perl version: 5.10.1
Category: CategoryRendering Server OS: Debian squeeze Last update: 13 years ago

We recently upgraded our TWiki install from Cairo to Istanbul (5.1.1), and found that some things in %TOC{"Topic"}% no longer worked. E.g. if in Topic there was a header:

---+ Chapter %SOMEVAR%

or:

---+ Chapter %CALC{$GET(someVar)}%

then when including that TOC on another page with %TOC{"Topic"}% the variables would not get expanded. Also with the Plugins.ExplicitNumberingPlugin section numbers like:

---+ ##. Bla

would not get expanded.

An essentially one-line fix to TWiki.pm (which makes _TOC call handleCommonTags for other-topic TOC's) solves these problems. So far I haven't seen any negative side-effects on our wiki.

-- GertjanVanOosten - 2012-03-29

Discussion and Answer

I can reproduce this on TWiki.org, which runs the latest TWiki. Please check TestTocInclude1. Could you file a bug report at TWikibug:WebHome ?

-- PeterThoeny - 2012-03-29

Bug filed, see Item6864.

-- GertjanVanOosten - 2012-04-03

Thanks Gertjan, this is now in SVN trunk and TWiki-5.1 branch.

-- PeterThoeny - 2012-04-03

      Change status to:
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.
SupportForm
Status Answered
Title Variable expansion etc. in TOC{"Topic"}
SupportCategory CategoryRendering
TWiki version 5.1.1
Server OS Debian squeeze
Web server 2.2.16
Perl version 5.10.1
Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatpatch twiki-pm.patch r1 manage 0.6 K 2012-03-29 - 14:11 UnknownUser Patch to TWiki.pm
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2012-04-03 - PeterThoeny
 
  • 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.