texnixe / kirby-quick-add

Kirby Quick Add Panel Section

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kirby Quick Add Plugin

This plugin provides a new panel section that provides a form to quickly add a new child page to a pre defined page structure. Initially it was build to quickly create new blog posts without having to navigate the page tree to the correct directory (e.g. blog/posts/[current year]).

Please consider this plugin as a show case how to build a simple custom section and not as full fledged and extremely customizable plugin. It's mainly built for my blog and just published because I wanted to write a post about it 🤪

screenshot

Installation

  1. composer require pwaldhauer/kirby-quick-add or copy the files to the site/plugins folder.
  2. Add the section to a blueprint:
sections:
  quickAdd:
    type: quickadd
    headline: New Post
    target: posts/[YEAR]
    defaultTemplate: micro
    templates:
      - micro
      - short
      - long

Blueprint options

  • headline: Printed above the section
  • target: The path to the page the new one will be a child of. [YEAR] will be replaced with the current year (e.g. 2020).
  • templates: List of possible templates
  • defaultTemplate: Default template

License

MIT

About

Kirby Quick Add Panel Section

License:MIT License


Languages

Language:Vue 79.6%Language:PHP 16.1%Language:JavaScript 4.3%