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 - 2008-07-23 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.