We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags

Does TWiki support custom variables?

Question

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?

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: loads smile
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Plugins

-- MartinSeibert - 18 May 2008

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.

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

 
Change status to:
Topic revision: r6 - 23 Jul 2008 - 07:34:04 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback