Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Display some pages of a collection, then browsing through all of them

Solved by John Martyn View solution

Started by John Martyn 4 years ago · 1 replies · 569 views
4 years ago

This must be simple but I can't figure it out.

Let's say I have a folder with different items. I'd like to build a page with a list of links to some of these items; then on clicking on one of these links you access an item## page, with arrows allowing you to navigate to all other items in the collection.

For the sake of clarity: I'd like to have a page "Trees" listing say, 12 specific trees; then on each "Tree##" page I can navigate through next and previous arrows through all other "Tree" pages.

How would you achieve this result?

nb: I realize this is probably not part of best practices for clear navigation, but this is intended!

4 years ago Solution

I solved it by creating a separate "Trees" page, showing a collection of children of "All Trees" page and visible:true.
Then on clicking on one of these you just browse through the "All Trees" section pages.

Sorry this wasn't really such a complex problem afterall!

Suggested topics

Topic Participants Replies Views Activity
Support · by webmasterodp, 1 week ago
4 160 7 days ago
Support · by nwhitfield, 1 week ago
2 140 1 week ago
Support · by stell, 3 weeks ago
5 371 2 weeks ago
Support · by gravinator, 1 month ago
5 565 2 weeks ago
Support · by Gravver, 3 weeks ago
6 348 3 weeks ago