SID-01440: Variable expansion etc. in TOC{"Topic"}
| Status: |
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
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.