Tags:
create new tag
view all tags

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:

  • Set FOO = BAR

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

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RedHat Linux 7.5, kernel 2.7.3
Web server: Apache 3.0.99-563
Perl version: 5.005, 5.6.1
Client OS: MS Windows XP Service pack 2
Web Browser: Firefox 2.02
Categories: Platform

-- GreenLaw - 05 Aug 2007

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.

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

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2007-08-06 - CrawfordCurrie
 
  • 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-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.