Platform Variables

Last modified: 4/23/2026

Platform Variables

Platform Variables is the term used in GeoHazardWatch for dynamic values that can be inserted into pages. These are also known as WikiVariables (the JSPWiki term).

Variable Types

GeoHazardWatch supports three categories of variables:

Configuration Values

Configuration Values come from the system configuration and are accessed using the ConfigAccessorPlugin. These are static values set by administrators.

Syntax: [{ConfigAccessor property='ngdpbase.property.name'}] will show:

Examples:

See Configuration System for details on available configuration properties.

Contextual Variables

Contextual Variables are dynamic values that depend on the current user session or page being viewed.

Syntax: [{$variablename}]

Examples:

VariableDescriptionExample Output
[{$pagename}]Current page titlePlatform Variables
[{$username}]Current userAnonymous
[{$requestcontext}]Current action{$requestcontext}

System Variables

System Variables are dynamic values about the platform itself, independent of user or page context.

Syntax: [{$variablename}]

Examples:

VariableDescriptionExample Output
[{$applicationname}]Platform nameGeoHazardWatch
[{$totalpages}]Total page count133
[{$uptime}]Server uptime21h 51m 13s
[{$timestamp}]Current timestamp2026-06-06T02:55:42.961Z

Using Variables

Variables are inserted into pages using the JSPWiki syntax:

The current page is [{$pagename}] and you are logged in as [{$username}].

This platform ([{$applicationname}]) has [{$totalpages}] pages.

Variable Plugins

Several plugins provide variable functionality:

PluginPurpose
Using VariablesPluginDisplay all available variables
ConfigAccessorPluginAccess configuration values
Current Time PluginDisplay formatted date/time
Using UptimePluginDisplay server uptime
Using TotalPagesPluginDisplay page count

Viewing Available Variables

Use the Using VariablesPlugin to see all available variables:

[{VariablesPlugin}]