Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

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

Solved by John Martyn View solution

Started by John Martyn 3 years ago · 1 replies · 274 views
3 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!

3 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 Thomas, 1 week ago
2 54 11 hours ago
Support · by Anna, 3 days ago
2 60 14 hours ago
Support · by Justin Young, 15 hours ago
1 30 15 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 57 5 days ago