Hello people.
I need help with outputting some elements (fields) that are belong to pages which are listed and selected in panel.
Let me explain:
I have unlisted pageA that contains dozens of subpages (in this case called Providers).
I also have pageB that contains several blog posts.
When I edit a post from pageB, there is a list of all pageA subpages (providers) there which I got using the query:
sections:
-meta:
–type: fields
–fields:
—providers:
----label: Providers
----type: checkboxes
----options: query
----query: site.find(“pageA”).children
So after I check (select) few pages I would like to use foreach and output fields that belong to those selected pages.
That foreach will be added to template that is used for pageB blog posts.
Any help or clue is highly appreciated.
Thank you.