Panel: querying "site.txt" structure fields as pages/subpages fields' values

  1. Idea: You could create a custom field that pulls the information from the structure field. But you would need a separate custom field for each field.

  2. Idea:( But I don’t know if panel hooks work when site.txt is updated). Create a hook that writes the options to a json file that is available via URL. Then you could add that URL to the options query.

External API support for dynamic field options

You can now simply pass a URL for options to fetch a JSON array with keys and values for options:

  label: Select field
  type: select
  options: http://myoptionsapi.com/options.json
Make sure the JSON is in the following format:

{
 'key1' : 'value1',
 'key2' : 'value2',
 'key3' : 'value3' 
}

http://getkirby.com/changelog/kirby-2-1-0