Getting Next & Previous Nav to work across multiple pages/tiers
Permalink
Hi all,
I'm in the process of completing my very first C5 site and have come across my first hurdle. I have a blog page on the site that contains sub-pages (or categories) for each blog post. Here is how my page is set up to give you an example:
Blog
-Music
--Music post 1
--Music post 2
-Gaming
--Gaming post 1
--Gaming post 2
...and so on.
The Blog page contains a Page List block that displays all posts under the Music, Gaming, etc categories.
Music contains a Page List block that displays just music posts, whereas Gaming contains a Page List block that just displays gaming posts, and so on.
So far so good!
Now I want to have it so that, regardless of what sub-page a post is under, the Next & Previous Nav disregards the sub-page altogether and goes off the date of each post under the grandparent page. For example, the structure would be interpreted as follows:
Blog
--Music post 1
--Music post 2
--Gaming post 1
--Gaming post 2
It would also be nice to have the Up link take me to the main Blog page if the post was reached via the Blog page in the first place (though I assume this is not practical without unnecessarily duplicating content or to help determine which page people are visiting from). This isn't compulsory though as I should be able to do something hardcoded maybe as a separate block on the blog post.
Is any of this even possible or have I overcomplicated the process in favour of an easier solution? Is there a block anyone can recommend on the marketplace that allows for this functionality?
Many thanks in advance!
I'm in the process of completing my very first C5 site and have come across my first hurdle. I have a blog page on the site that contains sub-pages (or categories) for each blog post. Here is how my page is set up to give you an example:
Blog
-Music
--Music post 1
--Music post 2
-Gaming
--Gaming post 1
--Gaming post 2
...and so on.
The Blog page contains a Page List block that displays all posts under the Music, Gaming, etc categories.
Music contains a Page List block that displays just music posts, whereas Gaming contains a Page List block that just displays gaming posts, and so on.
So far so good!
Now I want to have it so that, regardless of what sub-page a post is under, the Next & Previous Nav disregards the sub-page altogether and goes off the date of each post under the grandparent page. For example, the structure would be interpreted as follows:
Blog
--Music post 1
--Music post 2
--Gaming post 1
--Gaming post 2
It would also be nice to have the Up link take me to the main Blog page if the post was reached via the Blog page in the first place (though I assume this is not practical without unnecessarily duplicating content or to help determine which page people are visiting from). This isn't compulsory though as I should be able to do something hardcoded maybe as a separate block on the blog post.
Is any of this even possible or have I overcomplicated the process in favour of an easier solution? Is there a block anyone can recommend on the marketplace that allows for this functionality?
Many thanks in advance!