Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-02 01:04:06

zombywoof
New Member
Registered: 2004-11-23
Posts: 2

create article list of last 30 *days*

I’m trying to create a list of articles posted in the last 30 days. Am I missing a simple way (tag) to do this? I see how to limit for the last x number of articles, or articles published in a certain Month (i.e. Nov 2005), but I need anything published the last 30 days, whether in this month or last month. The project I’m working has Press Releases, which have a kill date 30 days after publication. So I want the active Press Release Directory to show only articles that were published less than 30 days from today. I’ll have a separate historic archive of all releases by month.

I’m converting this page to a dynamic txp page .

Thanks for any ideas, or nudges in the right direction.

-Mike

Last edited by zombywoof (2005-12-02 01:04:27)

Offline

#2 2005-12-02 03:13:35

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: create article list of last 30 *days*

try ras_if_current or ras_if_expired … I think they do what you want … not tried em yet

Offline

#3 2005-12-02 13:57:42

zombywoof
New Member
Registered: 2004-11-23
Posts: 2

Re: create article list of last 30 *days*

Thaks for the link nardo, worked like a charm. Great, simple, little plug-in by Rick Silletti. seems like this should be built into the core of TXP for sites that want more than just a blog.

Offline

#4 2005-12-02 14:04:07

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: create article list of last 30 *days*

Yup, that would make an interesting limit-like attribute for the txp:article tags.

Offline

Board footer

Powered by FluxBB