Does TWiki support custom variables?
Hi all,
I would like to improve our internal reporting. To decrease the amount of redundant values to be edited, I would like to define custom variables and us them in different topics.
Those could be:
%TURNOVERMAY2008%
%PAIDDAYSOFF2007%
Is that possible?
--
MartinSeibert - 18 May 2008
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.
Yes, define a preferences setting in your Main.TWikiPreferences (site-wide effect), or in a
WebPreferences (web-level effect), such as:
- Set TURNOVERMAY2008 = 137 broiled turkeys
Result: %TURNOVERMAY2008% expands to 137 broiled turkeys
For more complex needs with parameters look into
ParameterizedIncludes (
VarINCLUDE,
VarSTARTSECTION), and into creating your own
TWikiPlugins.
--
PeterThoeny - 18 May 2008
Cool! Peter, thanks for this quick answer.
--
MartinSeibert - 19 May 2008
Hi all,
I would like to merge some columns of different tables but it is not possible with these variables. Is there any other solution?
--
CorinnaSchulz - 19 May 2008
Hm, Corinna maybe you're looking for how to
CreateTableBasedOnOtherTableSearch. Otherwise you need to create a new support question with more details about what you want to do.
--
FranzJosefGigler - 19 May 2008
Closing this question after more than 30 days of inactivity. Please open a new question if needed.
--
PeterThoeny - 23 Jul 2008
Topic revision: r6 - 23 Jul 2008 - 07:34:04 -
PeterThoeny