-
- 953 Posts
My setup:
Level 1
-- Level 2
---- Level 3
---- Level 3
---- Level 3
-- Level 2
-- Level 2
-- Level 2
Level 1 - Redirects to first child (function will change in time)
Level 2 - an overview of all its level 3 elements
Level 3 - single element with previous next navigation
I am using pdoResources to populate Level 2 with a preview of the Level 3 documents - click the preview and you are taken to the Level 3 document
What I would like to do is create a paginated navigation for all of the Level 2 elements - similar to previous next, but using the function of a split pagination
I have tried doing so with pdoPage + pdoResources but that doesn't work as I thought it would
So I started to look at pdoMenu but can't figure out if it's possible to do what I want with it.
Has anyone any experience with this, or has a similar solution using a different snippet ?
Any + All help appreciated
Did you notice that pdoTools has the pdoNeighbors snippet? Perhaps this is more what you want?
http://docs.modx.pro/en/components/pdotools/snippets/pdoneighbors
-
- 953 Posts
Hi Susan
Yes i've seen that - I am using it on Level 3
The reason I need a paginated navigation is that previous next only does exactly that - previous and next
I have hundreds of parents (Level 2) and as such require the nav similar to: 1 | 2 | 3| ... | 151 | 152
Previous next isnt enough in this situation
I had to get my pagination for Level 2 specificaly programmed for Evo as I couldn't find a solution there either
So this does seem to be something more bespoke
pdoPage does this. Unfortunately its documentation hasn't been translated yet
http://docs.modx.pro/components/pdotools/snippets/pdopage
-
- 953 Posts
pdoPage will do it at Level 1, but not at Level 2
I have it working on Level 1 using depth 2 - as I dont want the folders (Level 2) to be listed
The pagination is then blah.html?page2 etc.
What I need on Level 2 is to show all of the folders in the pagination on their level
Example:
Level 2 page 5 should have something like:
1 | 2 | 3 | 4 | 5 | ... | 151 | 152
Where:
1 = page-1.html
2 = page-2.html
3 = page-3.html
4 = page-4.html
5 = page-5.html
Etc..
pdoPage creates a navigation on level 1 as such:
1 = page.html?page-1
2 = page.html?page-2
3 = page.html?page-3
4 = page.html?page-4
5 = page.html?page-5
Etc.
Why, because it calls all of the pages in one page
"Previous Next" / "pdoNeighbors" is similar to what I want, but I need it in a paginated form as in pdoPage
So you want different paging on the different levels? That would be an interesting puzzle.
-
- 953 Posts
Hi Susan
I have sent you a PM