Download the PHP package pechente/kirby-admin-bar without Composer
On this page you can find all versions of the php package pechente/kirby-admin-bar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pechente/kirby-admin-bar
More information about pechente/kirby-admin-bar
Files in pechente/kirby-admin-bar
Informations about the package kirby-admin-bar
Kirby Admin Bar
Kirby Admin Bar provides a simple admin bar for your frontend. It allows logged-in users to quickly edit the current page and navigate to other important pages of the panel.
Please note that this plugin might disable Kirby staticache since it renders different content for logged-in users and guests.
Installation
Download
Download and copy this repository to /site/plugins/kirby-admin-bar
.
Git submodule
Composer
Setup
Install the plugin and enable it in your config.php:
Enabling the plugin this way will automatically insert it before the closing body tag for logged-in users.
By default, the admin bar has a fixed position which might cause it to overlap your header / content. Kirby Admin Bar provides a CSS variable to offset your header accordingly, i.e.:
Additionally, Admin Bar relies on a bunch of CSS variables that you can overwrite to customize the look:
Dealing with virtual pages
The edit link will not work for virtual pages. In these cases, you can disable the edit button by returning the field "disableEditButton" from the page, i.e.:
Sometimes however, your virtual page is being fed by another page like a settings page. In this case, you can overwrite the URL of the edit link instead of disabling it completely, like so:
Both panelUrl
and disableEditButton
are read as page fields and can therefore even be created as regular fields in a blueprint so can fill them out through the panel or create them as pre-filled hidden fields.
License
MIT