Plugin Parameter Shortcuts
Some plugin parameters accept special values that GeoHazardWatch resolves for you at render time — so one line of markup works on any page, for any user, without editing. This page is the single reference; individual plugin pages link here rather than repeating it.
Shortcuts vs Contextual Variables: these are two different things.
- A contextual variable like
Plugin Parameter Shortcutsorplugin-parameter-shortcutsexpands anywhere in a page (text or a plugin parameter) to a value — see Contextual Variables.- A parameter shortcut like
currentis only meaningful inside a specific plugin parameter; the plugin itself interprets it.currentis not a variable and does nothing in ordinary text.
current
Scopes a plugin to the page it is written on. Because keywords across a library are tagged inconsistently — some with a page's display name (Dining, Travel), some with its slug (2026-trip-west) — current tries both forms and uses whichever actually has content. You never have to know how a page was tagged.
| Plugin | Parameter | current means |
|---|---|---|
| Using MediaPlugin | keyword='current' | Media whose keyword is this page's name or slug |
| Using MediaPlugin | page='current' | Media linked to this page |
| Using SearchPlugin | user-keywords='current' | Pages tagged with this page's name or slug keyword |
Example — drop this on a keyword-landing page (e.g. Genealogy, 2026 trip west) and it self-scopes:
[{MediaPlugin format='album-link' keyword='current'}]
[{Search user-keywords='current' format='titles' pageSize=25}]
Prefer current over a hardcoded keyword — the same line then works on every page and survives a page rename.
$currentUser
Resolves to the logged-in user's username. If the visitor is not signed in, the plugin shows a sign-in prompt instead of results.
| Plugin | Parameter | $currentUser means |
|---|---|---|
| Using SearchPlugin | author='$currentUser' | Pages authored by the current user |
| Using SearchPlugin | editor='$currentUser' | Pages last edited by the current user |
Example — a personal "my pages" list that works for whoever is viewing:
[{Search author='$currentUser' format='titles'}]
Force a specific form (advanced)
When you deliberately want the slug form regardless of tagging — for example matching only slug-tagged media — use the plugin-parameter-shortcuts contextual variable instead of current:
[{MediaPlugin format='album-link' keyword='plugin-parameter-shortcuts'}]
See Contextual Variables for Plugin Parameter Shortcuts, plugin-parameter-shortcuts, and Anonymous.
Related pages
- Contextual Variables —
Plugin Parameter Shortcuts/plugin-parameter-shortcuts/Anonymous - Using SearchPlugin
- Using MediaPlugin
- Keywords and Categories — how pages and media are tagged
No comments yet.