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:
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
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
.