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
--
VickiBrown - 13 Jun 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.
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.
--
FranzJosefGigler - 15 Jun 2007
Feature proposal:
Codev.INCLUDEdSetvariablesshouldwork
--
VickiBrown - 07 May 2008