Overview
Contextual Variables are Platform Variables that are based on your current context within GeoHazardWatch.
Contextual Variables are Platform Variables that require user or page context Like:
- what page you are on: Contextual Variables
- Your User Name: Anonymous
- etc.
Contextual Variables are provided from Plugins
Available context variables
| Variable | Expands to | Example use |
|---|---|---|
Contextual Variables | Current page's display __name__ (e.g. 2026 trip west) | headings, prose, plugin params |
contextual-variables | Current page's __slug__ — URL/keyword form (e.g. 2026-trip-west) | keyword-matching plugin params |
Anonymous | Signed-in user's username | greetings, personal filters |
Both the ${...} (dollar-brace) and [{$...}] forms are supported; the ${...} form is the one to use inside plugin parameters, since it is expanded before the plugin runs.
contextual-variablesvscurrent:contextual-variablesalways gives the slug form. Thecurrentparameter shortcut (see Plugin Parameter Shortcuts) is smarter for keyword-scoped plugins — it tries the page name and slug and uses whichever has content. Prefercurrentfor self-scoping media/search; reach forcontextual-variablesonly when you specifically need the slug form.
Related pages
- Plugin Parameter Shortcuts —
current,$currentUser - Platform Variables
No comments yet.