|Title|User defined global variables
|Date|22-Nov-2005 18:41:54 EET
|JSPWiki version|2.2.33
|[Idea Category]|GenericIdea
|[Idea Status]|NewIdea

 It would be nice for the wiki admin to be able to set up global variables.  This could be either in the properties file, or in a page that is read prior to each page display.


You sort of can already.  Any property that starts with "jspwiki." can be displayed on a wiki page.  E.g. [[{$jspwiki.pageProvider}] ==> [{$jspwiki.pageProvider}] 


You can't! When I define a variable jspwiki.somename and assign a value to it, I may read the value on the same page but on other pages this variable is simply not defined.

--m!, 24-Jan-2006

Yes, you can - you just need to define it in jspwiki.properties...  That's why you need to be an admin.

-- JanneJalkanen


That's great, but if you wanted the variable to be a portion of a link, this doesn't seem to work.  Any workarounds?

--Erik Lorimor, 08-Jun-2006