Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
next/prev navigation on articles that are sorted by title
ok here’s my problem:
i have a list of articles from a given section and a given category, sorted by title. when i view one of these article individually, i need to link to the previous/next article in that section & category. to make things even more complicated, i also need the first value in article_image of the next/previous article.
so in the end i’d need something like:
<a href="link_to_next"><img src="first_article_image_of_next_article.jpg" /> next_title</a>
and the same for previous article…
seems to be much more complicated than i thought. any ideas?
Offline
Re: next/prev navigation on articles that are sorted by title
problem solved by using jk_neighbor and some raw php to get the image. feel free to close/move the thread.
Last edited by sthmtc (2008-02-13 10:55:09)
Offline
Re: next/prev navigation on articles that are sorted by title
Sven, when you solve a tricky problem like this it would be great if you could share your solution so others who find themselves in the same situation can get a quick “fix”. :)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline