Reported here: https://forum.ghost.org/t/hiding-content-collection-in-suggested-posts/3716
If you define more than one collection, the prev/next helper shows posts from another collection.
The helper should take the collection configuration into account. That basically means, it has to use the filter from the target collection.
I have not looked into a solution yet.
Ghost: master
I 👍 this issue. Here's my use case. I use a #newsletter collection with the RSS feed to power my mailing list. Since I'm the only author on my site, #newsletter stuff shows up in the next/previous posts.
Why was this closed? Will it be fixed?
// Adam
On Jan 24, 2019, at 03:50, Hannah Wolfe notifications@github.com wrote:
Closed #10059.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
All issues tagged with routing have been tagged with later and closed until we prioritise working on the Routing feature again.
Any updates on this? Anything we can help on?
This issue is not something easily fixable and we'd need time to properly design where the "filter" piece of data would fit in template rendering process/state.
Root of the problem has to do with how routing layer passes data to helpers like prev/next - during render stage helpers don't have enough information to know about collection route's filter.
When the template is rendered in routing rendered here, it's the last place where res maintains state about collection route's filter.
To provide additional data all the way to prev/next helper (and other helpers if needed) we could use root property available in root state, similar to how context and apiVersion are passed around.
To reproduce 2 collection state:
routes.yaml:routes:
/signup/: members/signup
/signin/: members/signin
/account/: members/account
collections:
/one/:
permalink: /one/{slug}/
template: index
filter: 'tag:one'
/two/:
permalink: /two/{slug}/
template: index
filter: 'tag:two'
taxonomies:
tag: /tag/{slug}/
author: /author/{slug}/
http://localhost:2368/one/