Hi there, I’m following the related articles post in the cookbook trying to create a page picker panel in the sidebar when editing a blog post, that lets me choose other published blog posts (articles) on my site.
related: type: pages query: page.siblings(false) empty: "No read next pages selected"
to the foot of my article.yml (which I use for blog posts)
However it only ever shows an add button which prompt me to add a page, not select a sibling blog post.
How can I change this to allow me to select other posts within the same parent folder? or even any page on the side - I don’t mind).
adding the following manually to a specific blog post interestingly doesn’t make anything show in the admin
Coverimage: - bear-notes-post.png --- Related: - journal/making-remote-work-work - journal/eliminating-distractions-as-a-generalist
or in my frontend template using the following in the template
$related = $page->related()->toPages();
…which makes me think my query is wrong.
Any suggestions as to where I’m going wrong? Articles live in a journal folder e.g. https://www.alpower.com/journal and there’s nothing else called related inside my article.yml file.