Hello my friends,
I am a new to Kirby, and I came across a problem in using Select field in the panel.
How can I load the options dynamically either from a file or dynamically generated in a php template.
I tried the ‘query’ keyword but I think it loads on pages and files of the current page.
Here is an example from Kirby docs (I do not want the options to be hard-coded like the following example but can be updated by the admin, then loaded here)
fields:
category:
label: Category
type: select
options:
design: Design
architecture: Architecture
photography: Photography
3d: 3D
web: Web