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 have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list 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:
Topic revision: r4 - 2008-05-07 - VickiBrown
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.