Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-12-15 21:49:21

hicks
Member
From: Portland, OR, USA (ex-UK)
Registered: 2009-05-08
Posts: 106
Website

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

#2 2009-12-15 22:50:02

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

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)


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#3 2009-12-15 23:02:47

hicks
Member
From: Portland, OR, USA (ex-UK)
Registered: 2009-05-08
Posts: 106
Website

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

#5 2009-12-15 23:25:25

hicks
Member
From: Portland, OR, USA (ex-UK)
Registered: 2009-05-08
Posts: 106
Website

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

#6 2009-12-16 00:41:37

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: txp:article_custom = one older than the last showing txp:article

You can have an article_custom within an individual article page.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#7 2009-12-16 04:25:55

hicks
Member
From: Portland, OR, USA (ex-UK)
Registered: 2009-05-08
Posts: 106
Website

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

Board footer

Powered by FluxBB