What Does This Recipe Do?

This lava template creates a floating admin toolbar that appears in the bottom-right corner of your pages. It provides quick access to edit the current page or content directly from the front-end, with contextual edit buttons that change based on what type of page you're viewing. It also includes a searchable HTML entity reference with one-click copying.


How to Set This Up

Setup Steps

1 Add HTML Content Block to Site Layout
Add an HTML Content block to your site's footer or layout zone (we use it on the site level). Make sure to enable the Rock Entity lava command in the block settings and set your security.
2 Paste the Lava Template
Copy the contents of the attached AdminWidget.lava file into the HTML Content block.
3 Configure Security Role and Page IDs
Update the variables at the top of the template to match your page structure for groups, registrations, events, and workflows.
Done That's it!
The widget will now appear for authorized users on your site, providing contextual edit links based on the page they're viewing.

Customize It to Your Instance

Make sure you adjust the values assigned at the top to the pages set security to the block.

    {%- assign groupDetailPageId = '1231' -%}
    {%- assign registrationDetailPageId = '3453' -%}
    {%- assign eventOccurrencePageId = '4564' -%}
    {%- assign workflowEntryPageId = '5675' -%}