GeoHazardWatch

Page Actions


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 Shortcuts or plugin-parameter-shortcuts expands anywhere in a page (text or a plugin parameter) to a value — see Contextual Variables.
  • A parameter shortcut like current is only meaningful inside a specific plugin parameter; the plugin itself interprets it. current is 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.

PluginParametercurrent means
Using MediaPluginkeyword='current'Media whose keyword is this page's name or slug
Using MediaPluginpage='current'Media linked to this page
Using SearchPluginuser-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.

PluginParameter$currentUser means
Using SearchPluginauthor='$currentUser'Pages authored by the current user
Using SearchPlugineditor='$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.

No footnotes on this page.

No comments yet.