arnaudjuracek / kirby-field-clone

adds a "clone page" button in a panel page

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clone-page field

A custom Kirby field which adds a "clone page" button in the sidebar of the panel page.

preview.png

Kirby installation

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.

Options

fields:
  clone:
    type: clone
    text: 'Clone this page'
    prefix: '[clone] '
    sourceable: true # show a link to the clone source

Credits

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.

Contribute

Feel free to fork and pull request. Also, go check out the original kirby-clone-field.

License

MIT.

About

adds a "clone page" button in a panel page

License:MIT License


Languages

Language:PHP 83.0%Language:JavaScript 17.0%