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:
- Application name
- Base URL
- Feature flags
- System limits
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:
| Variable | Description | Example Output |
|---|---|---|
[{$pagename}] | Current page title | Platform Variables |
[{$username}] | Current user | Anonymous |
[{$requestcontext}] | Current action | {$requestcontext} |
System Variables
System Variables are dynamic values about the platform itself, independent of user or page context.
Syntax: [{$variablename}]
Examples:
| Variable | Description | Example Output |
|---|---|---|
[{$applicationname}] | Platform name | GeoHazardWatch |
[{$totalpages}] | Total page count | 133 |
[{$uptime}] | Server uptime | 20h 26m 51s |
[{$timestamp}] | Current timestamp | 2026-06-06T01:31:20.258Z |
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:
| Plugin | Purpose |
|---|---|
| Using VariablesPlugin | Display all available variables |
| ConfigAccessorPlugin | Access configuration values |
| Current Time Plugin | Display formatted date/time |
| Using UptimePlugin | Display server uptime |
| Using TotalPagesPlugin | Display page count |
Viewing Available Variables
Use the Using VariablesPlugin to see all available variables:
[{VariablesPlugin}]
No comments yet.