Hello,
Is is possible to pass the root of the site into a pages query in a blueprint?
I am trying to provide a way to select from top level, invisible pages.
Passing /, root, default leads to an error.
pagelink1:
label: Top Link
type: select
options: query
query:
page: /
fetch: children
template: sitepage
value: '{{title}}'
text: '{{title}}'
If you are using Kirby 2.1 you could try this:
...
query:
page: home
fetch: invisibleSiblings
...
But I think this won’t work, if you want to get deeper than the first level. I didn’t try it, just a guess …
I don’t think this works, but you can go up in the tree:
pagelink1:
label: Top Link
type: select
options: query
query:
page: ../../
fetch: children
...
depending on your level, you have to climb up as needed … The / notation is supposed to work but doesn’t … https://github.com/getkirby/panel/issues/392
I am at the top of the hierarchy so going back does not work.
I just stuffed the pages in a stub container page and went ahead. Good to know that the issue is already fixed.
Thank you!