Would love a simple way to collapse a structure field in the panel. Sometimes they get a bit long…
Thanks!
Would love a simple way to collapse a structure field in the panel. Sometimes they get a bit long…
Thanks!
Following this discussion, @Luke has created a plugin you may use as a workaround.
Use headline
fields to isolate your structure, and it will be collapsed by default.
You can find it on Github: Kirby Accordion Headline field.
Unfortunately the plugin doesn’t actually work within the structure field. It’s because the plugin JS fires before the handlebars JS builds out the HTML of the page.