Many people ask, over and over again, how to INCLUDE variable which are Set in another topic. The Workaround given is to use Spreadsheet Plugin. This violates both the Principle of Least Astonishment and the Rule of DRY (Don't Repeat Yourself).
If I
* Set FOO 15
in topic CommonIncludes, then %INCLUDE{"CommonIncludes"}% into any other page, %FOO% should evaluate to 15.
See
--
TWiki:Main/VickiBrown
- 04 Sep 2007
Hasn't this
security issue been discussed over and over again?
--
TWiki:Main.FranzJosefGigler
- 05 Sep 2007
Yep. However there is an argument that the %
VAR variable should be able to look into other topics, and not just webs. or you might consider adding an option to %INCLUDE to import Set statements, filtering those that relate to access control, though I am not particularly keen on the idea.
Regraded as Enhancement.
CC
This is a feature proposal related to the overall spec of core and with great impact.
It must follow release process. Setting to No Action.
--
KennethLavrsen - 23 Dec 2007
Feature proposal:
http://twiki.org/cgi-bin/view/Codev/INCLUDEdSetvariablesshouldwork
--
TWiki:Main.VickiBrown
- 07 May 2008