Hi Folks!
I am using ModX Revo and am trying to create a simple prev next Navigation thing for my site. It should work like this:
I have a "root" document (folder) that should be page 1. On this page there should be just a "next page" link. On the next page - which should be a sub document of my root document should be a "prev page" and a "next page" link on it. I was thinking of using wayfinder for this, but am not shure how i can only display one Link each time that links to the next document in the document tree. Same problem with the link for the prev. document....
Or maybe there is another possibility to create pagination in one single document? Maybe someone could point me to the right direction?
Would be great - thanks a lot!
EDIT: I discovered the snippet SelfLink - will test this, maybe this is exactly what i need
EDIT2: No SelfLink wasn’t the right snippet - it just cycles throu the document tree by ID and doesn’t navigate to sub documents of my folders - so any other suggestion would be welcome.
I think SelfLink can be modified a bit to link to its childs, if there are some, and back to its parents, if menuindex is 0 or something like that.
HEy Bruno! Thanks for your answer! But unfortunately i cannot modify the code myself

.... could you help me with this? Would be great!
I couldn't modify SelfLink to fit my needs myself (just folder navigation and not navigation by ID) and also tried BasicNav but couldn't get this snippet to output anything. If anyone has a suggestions this would be nice!
[ed. note: flanger last edited this post 15 years, 1 month ago.]