I’m seeing other topics related to this with much more complicated scenarios for generating panel fields with plugins and so forth, but I thought I would ask about my simple scenario.
How can I create a blueprint for a checkbox list such that the panel user defines the list of items and can check or uncheck each item? Is there a way to do this with a structured field?
The easiest way to do this would be to use a tags field in a parent page or the site settings and then have your checkboxes field query that field as shown in the docs --> Option from other field
This seems perfect. I’m having some trouble getting this to work however. I’m probably missing something really simple.
So on the parent page, uid apparel
I have:
options_list:
label: Options List
type: tags
and on the page in question I have this:
item_options:
label: Item Options
type: checkboxes
options: field
field:
page: apparel
name: options_list
I put in some dummy tags, and… nothing? Just the label shows up.
The path to the page is probably not correct, try:
item_options:
label: Item Options
type: checkboxes
options: field
field:
page: ../apparel
name: options_list
Ooook, I upgraded from 2.2.3 to 2.3.0 and that solved the problem. I didn’t realize this was a new feature.
There is an corresponding issue at https://github.com/getkirby/getkirby.com/issues/262 to show the old features.