Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Link to second article tag, from article list with no using txp:older
I am building a site where http://site.com/photographs/ is a article list page limited to one article (the latest photo).
I want a previous link to the next (second) photo resulting in the URL to change to http://site.com/photographs/2nd-photo-name
Is there anything I can use to accoplish this, besides chh_article_custom and zem_nav, both of which I tried without success (both cause errors or unexpected behaviour such as missed articles in the pagination for me).
The simplest solution I would like would probably be a tag that links to the second article posted to the site, for example: <code><txp:link_to_2nd_article></code>
Cheers,
Simon
Last edited by spgriffee (2006-04-15 09:47:17)
Offline
#2 2006-04-15 20:13:52
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Link to second article tag, from article list with no using txp:older
You can use <txp:link_to_prev><txp:prev_title /></txp:link_to_prev>
and <txp:link_to_next><txp:next_title /></txp:link_to_next>
in the single article form. In TextBook it says ‘Use in page or column’, but it works in an article form.
Last edited by els (2006-04-15 20:14:39)
Offline
Re: Link to second article tag, from article list with no using txp:older
Thank you very much Els—I was sure I had tried it but it must have been too late in the evening!
Works perfectly now.
Simon
Offline