Hi there,
I would like to create a structure field to see my website.
You’d have two columns :
In the first column you would be able to see or rearrange the categories, and eventually add some more.
The second column would display the corresponding projects to that category.
When the user creates a new project, they can add a category to it, corresponding to the list in that structure field.
The strcture field will display the updated corresponding projects in the second column.
I’ve managed to far to guess it will be done using queries. But my select in my individual project (that should display the list from the first column of my structure doesn’t seem ok that I give it an array.)
fields:
category:
label: Category
type: select
options:
type: query
query:
fetch: site.find('home').structure.toStructure
returns :
Kirby\Option\OptionsQuery::__construct(): Argument #1 ($query) must be of type string, array given,
Which is obvious, but how to make that work?