kirby-list-field icon indicating copy to clipboard operation
kirby-list-field copied to clipboard

A custom list field for Kirby CMS

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.