Hello,
What I want to do may be impossible, in which case I would welcome any thoughts on how to implement it a different way in Kirby. Is it possible to have dynamic data in a block? With dynamic data I mean data based on a previous choice in the block.
I have the following use case:
I have a custom content type Member. A member can have one or multiple dogs. All the info of the dog is recorded in a structure field on the member page.
As a member can compete in different contests with different dogs I want to make a custom block where a content author can choose to display the participants of a contest and indicate which of the dogs participated and add a result.
I am able to get the member info in the block, through a pages field, but don’t know if it is possible to pass the member info so that I can query the structure field in the block.
contestant:
label: Contestant
type: pages
search: true
max: 1
query: site.index.filterBy("template", "in", ["member"])
Any advice welcome