Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-02-06 19:43:43

amordecosmos
Plugin Author
From: London (Hometown: Vancouver)
Registered: 2004-08-03
Posts: 114
Website

txp:older & txp:newer with txp:article_custom

I already know that <txp:older> <txp:newer> do not work with <txp:article_custom>.

What is an easy way to have my reader see the next 10, then the next 10, etc. of an <txp:article_custom> list?

<txp:article> is not an option because this list will only be of articles where the category is “foo”.

Thanks.

edit. subject line

Last edited by amordecosmos (2007-02-06 22:55:59)

Offline

#2 2007-02-06 22:28:53

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

Re: txp:older & txp:newer with txp:article_custom

If the article list is not cross section, then you could use <txp:article />, by wrapping the content of your article form in <txp:if_article_category name="foo"> ... </txp:if_article_category>.

Edit: this will only work if you’re displaying articles from one section on their own section page, or if you’re displaying articles on the front page from sections that are set to be displayed on the front page.

Last edited by els (2007-02-06 22:32:58)

Offline

#3 2007-02-06 22:44:00

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: txp:older & txp:newer with txp:article_custom

Please don’t use angled brackets in subject lines of posts. Anything inside them will not display in RSS feeds. In the case of this post it reads simply as “with”.

Offline

#4 2007-02-07 06:09:16

amordecosmos
Plugin Author
From: London (Hometown: Vancouver)
Registered: 2004-08-03
Posts: 114
Website

Re: txp:older & txp:newer with txp:article_custom

Of course I am doing it the hard way. It is cross-section.

<txp:article_custom category="news">

But the sections are, say, “Music, Film, and Theatre.”

Offline

#5 2007-02-07 17:13:12

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

Re: txp:older & txp:newer with txp:article_custom

And are you displaying this category list on a section page or on the front/default page?

Offline

Board footer

Powered by FluxBB