Tags:
create new tag
view all tags

Question

Is there a way to access a variable defined in another topic?

A topic inherits variables defined in its WebPreferences. But what if I want to define some variables that I need in several pages and don't want that variable to be global to the entire web?

Environment

TWiki version: TWikiRelease04x00x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories:  

-- VickiBrown - 13 Jun 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.

Topic level variable exist only in the current topic, and not if included by another topic. You can define the variables in the WebPreferences so that they are known in all topics of that web.

Alternatives:

-- PeterThoeny - 14 Jun 2007

Once there also was the TopicVarsPlugin which did excatly what's needed here. Always thought this feature should be in the Core. Maybe when we get the ContentAccessSyntax. wink

-- FranzJosefGigler - 15 Jun 2007

Feature proposal: Codev.INCLUDEdSetvariablesshouldwork

-- VickiBrown - 07 May 2008

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2008-05-07 - VickiBrown
 
  • 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.