Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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
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
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
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
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
Pages: 1