TimOetting / kirby-list-field

A custom list field for Kirby CMS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

List Field for Kirby CMS

This is a custom list field for Kirby. It lets you write and sort a simple list of text inputs.

Here is a blueprint example:

fields:
  ...
  fruits:
    label: Give Me Fruits
    type: list
    placeholder: Add a new fruit

Have a look at the resulting panel field:

list field demo

The content will be YAML-structured. Inside the template, the field therefore has to be decoded as an array using $page->fruits()->yaml().

----

Fruits: 

- Lemons
- Apples
- Banana
- Oranges

Setup

Using git, go to the root folder of your Kirby project and run git clone https://github.com/TimOetting/kirby-list-field.git site/fields/list. You can also just copy the content of this repository into site/fields/list.

About

A custom list field for Kirby CMS

License:MIT License


Languages

Language:PHP 53.8%Language:JavaScript 42.7%Language:CSS 3.5%