SID-01673: general method to include vars
| Status: |
Answered |
TWiki version: |
5.0.2 |
Perl version: |
?? |
| Category: |
CategoryMissingFunctionality |
Server OS: |
redhat ?.? |
Last update: |
13 years ago |
I'm looking for a way to manage wiki variables for large collections of pages.
for example: At the top of a page a user would add:
%<nop>INCLUDE("VariableSetOne")%
and this would define many page specifi variables (for example WSVN settings for a particular project)
Many pages would include that line, and all would get the same variables (much like webpreferences)
I'm trying to unify many different engineering webs at our site into one web to get better group interaction. But each group has its own unique variable settings (currently set in webPreferences)
I have tried the approach in
Support.SID-00188 but it is not practical to have the 30+ lines in each page defeining the variables. (I tried using %<nop>EXTRACT% to build a list on the fly, but it didn't define the vars in BASETOPIC even though it printed them)
The approach in
Codev.MakingVarVARTopicCapable also requires one line per variable if I understand it correctly.
My ideal solution would keep all the group specific variables in one place, and modifying that place would propagate to each page that referenced it.
(please change the question category as appropriate)
--
Randy Melton - 2013-04-01
Discussion and Answer
At this time it is not possible to INCLUDE preferences settings. You can however INCLUDE a topic that defines
SpreadSheetPlugin variables or hashes. Those can be used after an INCLUDE. The same is the case with SET and GET variables of the
SetGetPlugin.
--
Peter Thoeny - 2013-05-01
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.