Hello,
i have a tab called “configurator” in the site.yml where a user can create screens. Inside a screen he can create buttons and link them to other screens. I can’t find out how to query the allready existing screens to populate the select box.
configurator:
label: Configurator
icon: cog
fields:
screens:
label: Screens
type: structure
fields:
title:
label: Title
type: text
buttons:
label: Buttons
type: structure
fields:
buttonTitle:
label: Button Title
type: text
nextScreen:
label: Next Screen
type: select
options:
query: site.tabs.find('configurator').fields.screens.toStructure()
value: "{{ option.id }}"
text: "{{ option.title }}"
What am i doing wrong?
Thank you in advance.