Loading...
 
Skip to main content

Features / Usability


Create and use Wiki Page Variables

Seems a bit trivial, but have not been able to find any answers to what seems to be a simple function: page variables

Something equivalent to most any scripting language. E.g.:

SET myusername=ARDAvonWOOLF

This page contains information about $myusername$.

$myusername$ cannot find any information about page variables.

(etc.)

Obviously a simple example, but our documentation project could make use of page templates where a field or two would then populate the page in the many locations where the $field$ appears.

Furthermore, we like to use these variables in a {TRACKERLIST} filtervalue, but that may be for later discussion.

-AvW

There is a feature called Dynamic Variable which is similar to your "page variable". The value displays in pages where it is coded. If a user has the correct permission, they can update the value on any page that it displays on.
http://doc.tikiwiki.org/Dynamic+VariableQuestion

It is very usefull if you have something that is included on multiple pages, you only have to update it on one page and all the other pages are updated.

I does not work well when used with trackers. I have found that if you use it on a tracker template page, the template page will not work.

Yes, the Dynamic Variable is really a global variable. I need something much more limited in scope, specifically the wiki page on display.

The documentation we are developing requires the use of an identification string in several instances throughout the page.

For example, we are documenting IT systems: hardware (inventory), builds, changelogs, tasklists, etc. To document a server, for example, the wiki page contains trackerlists for the hardware, changelog, and tasklist. For the serverbuild template, we have everything in place except the customized text (Purpose of the server, Install Notes, etc.) and the links to the trackerlist items--in which we need to manually replace the "PutSerialNumberHere" placeholders for all the trackerlist items, plus anywhere else it is required. If we could just define a field and use it only within the page, we could bypass these manual edits and reduce possible errors.

It's a simple concept and is used in common scripting like bash and DOS batch scripts, I'm just surprised this is not available here.

Thanks
-AvW