This plugin helps dealing with long lists with multiple fields.
This plugin is completely free and published under the MIT license. However, if you are using it in a commercial project and want to help me keep up with maintenance, please consider making a donation of your choice or purchasing your license(s) through my affiliate link.
- 1. Installation
- 2. Setup
- 3. Supported fields
- 4. Field properties
- 5. Front-end usage
- 6. Drawbacks
- 7. License
Download and copy this repository to /site/plugins/multilist
Alternatively, you can install it with composer: composer require sylvainjule/kirby-multilist
Use is as you would use a Structure :
multilist:
label: Multilist example
type: multilist
fields:
name:
label: Item name
type: text
date:
label: Release date
type: date
toggle:
label: Listed?
type: toggle
The field supports all inline field types:
text
url
email
select
multiselect
number
tel
tags
range
toggle
time
date
hidden
More complex fields (files, pages, blocks, layout, etc.) are not supported.
You have access to a lot of the Structure field properties, with a few tweaks:
- There is no
columns
property, instead you can directly set awidth: x/x
property on your inner fields. - There is no
duplicate
property.
Use it as you would use a structure field, with either the ->toStructure()
ou ->yaml()
method.
I have intended this field for websites where editors edit content on desktops. Due to the complex naure of the field, it doesn't have any mobile aternate view.
MIT