judbd
September 6, 2017, 9:08am
1
Is there a way to select fields in sub-page of a page?
like this
fields:
favorite_drink:
label: Favorite Drink
type: select
options: field
field:
page: menu
name: available_drinks
separator: ;
But with the children pages of menu for example?
thanks!
Yes, you just have to provide the correct URI for the sub-page youβre trying to query the field from.
page: menu/subpage-of-menu/sub-subpage-of-menu
(If you want to query a structure field though, you might need the Select-a-Structure field )
texnixe
September 6, 2017, 11:35am
3
You canβt get the values of multiple pages, though, if that is your intention. In that case the controlled list plugin is an option to fetch all values of particular field from all the child pages.
judbd
September 6, 2017, 2:39pm
4
Yes it was for retrieving all the values of a certain field in multiple children pages. Thank you, I will look the plugin.