Question
I found Set Variables in a topic will be invalid if the topic is included in another topic.
For example, suppose I have defined a variable FOO in topic
GreenLawSection1:
Then I try to reuse the definition in
GreenLawTestIncludeVariable by including
GreenLawSection1 in latter. Unfortunately, it does not work. The FOO variable defined in
GreenLawSection1 is not is not recongnized in
GreenLawTestIncludeVariable.
Anyone knows how to workaround this problem?
Environment
--
GreenLaw - 05 Aug 2007
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.
Sorry, but your observation is really just how TWiki behaves right now. It has been proposed to add an option which allows taking settings with you when a topic is included, but it is not yet implemented. There are some issues to solve with regard to a clear specification, a lengthy discussion (abandoned last year) is at
Codev.IncludeShouldIncludeSettings.
A workaround is to define settings which should apply to several topics in the
WebPreferences topic.
--
HaraldJoerg - 05 Aug 2007
Unfortunately, adding settings in
WebPreferences topic does not fit my situation. Any plan on the implementation of the new feature that allows taking settings defined in the included topic ?
--
GreenLaw - 06 Aug 2007
No. No-one has followed up with an implementation, or even a clear specification.
--
CrawfordCurrie - 06 Aug 2007