Is there a way to get a value from same structure field? I’m letting the user select a child page and want them to also be able to select an image from that page. Here’s the blueprint which works, but always grabs the first structure field (nth(1)
)…
...
content:
type: fields
fields:
project:
type: select
options: query
query: site.index.filterBy("intendedTemplate", "in", ["project"]).sortBy("title", "asc")
help: click Save after selecting a project, then select an image below
profileimg:
type: select
options: query
query: page.projects.toStructure.nth(1).project.toPage.images
help: must click Save after selecting a project above, then choose an image
I tried calling a custom route, but still need to pass some value to select the right images.