Adds an Edit Button to the Frontend to quickly edit the current page in the panel. Only shown if user is logged in.
Works with caching enabled, because the auth check is done with javascript.
This plugin requires Kirby 4.x and newer.
kirby plugin:install tan3/kirby-edit-button
git submodule add https://github.com/tan3/kirby-edit-button.git site/plugins/edit-button
composer require tan3/kirby-edit-button
- Download the contents of this repository as Zip file.
- Rename the extracted folder to
edit-buttonand copy it into thesite/plugins/directory in your project.
Include the snippet in your footer.php or layout.php
<?php snippet('edit-button') ?>