Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
txp:article_custom = one older than the last showing txp:article
Hello,
Here’s the website in question: levelmag.com.
Under the single article on the left, I want to put the next ‘older’ article, represented in a simpler form (like the ones on this page on the left) which links to the next oldest page — so it’ll have the same functionality as a <txp:older> tag.
Please help?
Thanks in advance.
Hicks.
Offline
Re: txp:article_custom = one older than the last showing txp:article
You can use offset to skip the first article.
Last edited by MattD (2009-12-15 22:50:16)
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: txp:article_custom = one older than the last showing txp:article
Thanks, Matt. That had crossed my mind, but I didn’t think it would work: can I have two txp:article tags on the same page? I’ve forgotten.
Hicks.
Offline
#4 2009-12-15 23:20:58
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: txp:article_custom = one older than the last showing txp:article
hicks wrote:
can I have two txp:article tags on the same page?
Not on an individual article page, at least not to display two different articles. It’s possible on an article list page:
<txp:article limit="1" />
<txp:article limit="1" offset="1" />
Offline
Re: txp:article_custom = one older than the last showing txp:article
All right. I can probably fix up some variables and bodge some PHP to get that working throughout.
Thanks!
Hicks.
Offline
Re: txp:article_custom = one older than the last showing txp:article
You can have an article_custom within an individual article page.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: txp:article_custom = one older than the last showing txp:article
All right, I got that working in a quick test; now I just need to figure out the best way to present it before I stick it back in.
My site is a mess of probably-too-complicated codes to get it all working simultaneously and independently. Note how the left and right hand sides seem to behave like txp:article set-ups, even when in each other’s pages, and how clicking on any older/newer or section button doesn’t effect the rest of the content on the page.
(It’s all thanks to this forum’s resident genii.)
Hicks.
Offline