Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-19 08:22:48

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,122
Website GitHub Mastodon Twitter

txp:newer/older with article_custom

I just can’t make it work.

This is what I (basically) have

<p></p>
<code><txp:article_custom section=“about” category=“about” limit=“1” /></code>
<p></p>
<code><txp:if_article_list></code>
<p></p>
<code><txp:article_custom section=“projects” category=“projects” limit=“10” /></code>
<p></p>
<code><txp:older>older posts</txp:older> – <txp:newer>newer posts</txp:newer></code>
<p></p>
<code></txp:if_article_list></code>
<p></p>
<code><txp:article_custom section=“address” category=“address” limit=“1” /></code>

the newer/older tags are there for the “projects” section/category and are just not parsed.

Any idea how I can acheve it?

Last edited by colak (2006-04-19 08:27:49)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#2 2006-04-19 09:47:30

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: txp:newer/older with article_custom

article_custom was specifically designed to not be context-sensitive/url-sensitive (i.e. not be change depending on pagination etc.).

You are looking for a plugin. (cch_article_custom?)

Last edited by Sencer (2006-04-19 09:47:47)

Offline

#3 2006-04-19 10:00:10

ricetxp
Member
From: London, UK
Registered: 2005-05-24
Posts: 89
Website

Re: txp:newer/older with article_custom

Older newer does not work with article_custom. This is from the wiki

Note that the txp:next and txp:prev tags won’t work with article_custom.

Maybe chh_article_custom plugin might work.

Offline

#4 2006-04-19 12:53:45

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,122
Website GitHub Mastodon Twitter

Re: txp:newer/older with article_custom

thanks sencer and ricetxp. I figured out how to do it using “status”. I’m trying to use as fewer plugins as pos for this one:)

>Edit: Just to help others, here’s how i did it…

<code><txp:article_custom section=“about” status=“sticky” category=“about” limit=“1” /></code>
<code><txp:if_article_list></code>
<code><txp:article status=“live” limit=“10” /></code>
<code><txp:older>older posts</txp:older> – <txp:newer>newer posts</txp:newer></code>
<code></txp:if_article_list></code>
<code><txp:article_custom section=“address” status=“sticky” category=“address” limit=“1” /></code>

Last edited by colak (2006-04-19 14:09:07)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2006-04-19 15:04:43

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: txp:newer/older with article_custom

I think status="live" is the default, so you don’t need the attribute in the article tag.

Offline

#6 2006-04-19 15:28:51

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,122
Website GitHub Mastodon Twitter

Re: txp:newer/older with article_custom

Els wrote:

I think status="live" is the default, so you don’t need the attribute in the article tag.

hi Els
thanks, i know. I included it there so as to distinguish it from sticky for newbies.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#7 2006-04-20 10:51:12

MADE73
Member
Registered: 2006-04-20
Posts: 12
Website

Re: txp:newer/older with article_custom

colak schrieb:

thanks sencer and ricetxp. I figured out how to do it using “status”. I’m trying to use as fewer plugins as pos for this one:)

>Edit: Just to help others, here’s how i did it…

<code><txp:article_custom section=“about” status=“sticky” category=“about” limit=“1” /></code>
<code><txp:if_article_list></code>
<code><txp:article status=“live” limit=“10” /></code>
<code><txp:older>older posts</txp:older> – <txp:newer>newer posts</txp:newer></code>
<code></txp:if_article_list></code>
<code><txp:article_custom section=“address” status=“sticky” category=“address” limit=“1” /></code>

hi, is this the final solution?
i use the chh_article_custom plugin but the “older-newer-navigtion” doesn’t appear

Offline

Board footer

Powered by FluxBB