Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-06-11 03:36:39

jeffBrady
Member
From: Wisconsin-US
Registered: 2009-06-08
Posts: 11

step through articles returned by an article_custom tag

I’m trying to step through the articles returned by the following tag: <txp:article_custom limit="1" category="testimonials" form="testimonial_form"/>

I’ve tried using <txp:newer>newer</txp:newer><txp:older>older</txp:older> in the form, but they don’t show up.

any suggestions?


Rocky!?

Offline

#2 2009-06-11 04:07:57

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: step through articles returned by an article_custom tag

newer and older don’t work with article_custom (see the TextBook page on article_custom). newer and older are context sensitive, and article_custom is not.

At any rate, newer and older don’t belong in an article form. They should go in the Page, after the article tag.


Code is topiary

Offline

#3 2009-06-11 04:20:18

jeffBrady
Member
From: Wisconsin-US
Registered: 2009-06-08
Posts: 11

Re: step through articles returned by an article_custom tag

is there a way that i can step through a set of articles, one at a time, in the same space (on the page)?


Rocky!?

Offline

#4 2009-06-11 04:30:45

jeffBrady
Member
From: Wisconsin-US
Registered: 2009-06-08
Posts: 11

Re: step through articles returned by an article_custom tag

Are there any tags that are not context sensitive? 1.Could I step through with php? 2.and how would I access the array?


Rocky!?

Offline

#5 2009-06-11 13:32:34

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: step through articles returned by an article_custom tag

jeffBrady wrote:

is there a way that i can step through a set of articles, one at a time, in the same space (on the page)?

Can you find a way to use <txp:article /> to get the articles you want? E.g., by using a section, keyword, or custom field instead of category? Then you could use older and newer.

Are there any tags that are not context sensitive?

I don’t know.

1.Could I step through with php? 2.and how would I access the array?

Possible, surely; messy & difficult, probably. I’d look at using section, keyword, or custom field along with <txp:article /> first.


Code is topiary

Offline

Board footer

Powered by FluxBB