A custom Kirby field which adds a "clone page" button in the sidebar of the panel page.
Put the content of this repo in /site/fields/clone/
.
Please note that in order to put a custom action item in the panel's sidebar, I had to use a hacky injection method. Due to that, this field may not work on panel versions other than 2.3.2
.
fields:
clone:
type: clone
text: 'Clone this page'
prefix: '[clone] '
sourceable: true # show a link to the clone source
This repo is heavily based on Sonja Broda's kirby-clone-field
.
I chose to create a new repo rather than fork its own because I wanted a different approach to the experience of cloning a page.
Feel free to fork and pull request. Also, go check out the original kirby-clone-field
.
MIT.