Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2010-09-28 19:42:23
- masa
- Member
- From: North Wales, UK
- Registered: 2005-11-25
- Posts: 1,095
Listing articles from only the past x months
I would like to limit the article listing to a given time frame e.g. the past 6 months counting from the current date.
At the moment I use the following to limit the listing to the current year:
<txp:article_custom section="news" month='<txp:php>echo date('Y');</txp:php>' form="article_newsheaders" />
I have a feeling that smd_if would do the trick, but after studying Stef’s documentation, I have to admit, it’s way over my head.
Any tips would be appreciated.
Offline
#2 2010-09-29 02:03:36
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: Listing articles from only the past x months
masa wrote:
I have a feeling that smd_if would do the trick
And I’m sure you’ll know what you have to change ;)
Last edited by uli (2010-09-29 02:03:54)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#3 2010-09-29 07:48:37
- masa
- Member
- From: North Wales, UK
- Registered: 2005-11-25
- Posts: 1,095
Re: Listing articles from only the past x months
Thanks Uli – perfect!
Offline