TitleUser defined global variables
Date22-Nov-2005 18:41:54 EET
JSPWiki version2.2.33
Idea CategoryGenericIdea
Idea StatusNewIdea

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}] ==> VersioningFileProvider

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

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-7) was last changed on 25-Apr-2007 12:12 by