Expand description
On-site editor userbar.
Floating overlay that appears on the bottom-right of every PUBLIC page when the visitor is logged into the CMS admin. Gives editors one-click access to: Edit this page, View revisions, Open admin, and plugin-contributed entries.
§Wiring
Hosts call this from their public templates:
{# bottom of every public page #}
{{ rcms_userbar() | safe }}Visibility check: the userbar renders only when the request carries a CMS admin session cookie. Detection runs client-side (the markup is always emitted; CSS hides it if the cookie is absent) so server-side per-tenant caching of public pages stays correct.
Functions§
- register_
tera_ function - Register the
rcms_userbar(...)Tera function. Call alongside the other admin Tera helpers in the host’s public-router setup.