Quote from: ZAP
Just because Ryan asked to see it, here’s my quick and dirty previous/next links snippet.
OK, either I’m not understanding your code, or it doesn’t do what I think it is supposed to. I’m not a habitual PHP programmer, but I think I figured out the essence of what each line does.
Suppose A and E are sibling nodes in your web site document tree, each corresponding to a web page.
B, C, and D are sibling pages, all under A.
When the user visits page A, the Next link will point to page B.
When the user visits page B, the Next link will point to page C, and the Previous link will point to page A.
I’m not able to understand how in your code the Previous link pointing to A, seen when the user visits page B, will be created.
And when the user visits page D, the Next link should point to A’s sibling E, and I’m not understanding how your code will create this Next link.
Rahul