Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-08-16 09:21:52
- Bongo-man
- Member
- Registered: 2009-03-18
- Posts: 243
How to list articles posted between two different days?
I’m using <txp:recent_articles /> to list articles from different categories in a same index page.
I use categories almost as sub-sections, since every section has a thematic name and in a certain page/section (index) are listed almost only the same categories.
Now each total list are too long and I need to separate their first part from the second.
So I thought to use the attribute ‘posted’ to list in the first page those articles published till a certain day, but I don’t know how to have the second part of the list in a different page.
Besides Idon’t know how to use the attribute posted to get all this.
Thanks in advance.
Bongo
Last edited by Bongo-man (2009-08-16 11:20:44)
Offline
#2 2009-08-16 14:38:12
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: How to list articles posted between two different days?
You might succeed in altering the code posted here (Just use what comes below Nachtrag 2) It’s in the German section of this forum, but there’s no necessary information in the text above the code. Just be aware that smd_query is a plugin and its attribute “defaults” accepts a comma separated list of values, thus you have the possibility to set limits for the time frame.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#3 2009-08-16 16:50:54
- Bongo-man
- Member
- Registered: 2009-03-18
- Posts: 243
Re: How to list articles posted between two different days?
Thank you for your answer; I have seen the page but it is too difficult forme. I’m again a beginner. Will try to find a different way.
Offline
#4 2009-08-16 17:26:36
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: How to list articles posted between two different days?
Bongo-man wrote:
difficult
Yup, that comes with date calculations.
Alex Shiels, former TXP developer, recommends variations of article custom instead of recent_aricles, maybe placing a second article_custom tag, combining the offset and limit attributes? See break an article list into columns
on Common How-Do-I? questions
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: How to list articles posted between two different days?
Three other avenues of investigation:
ras_if_dates, msv_if_custom_article_date and rcb_if_month. There are probably other methods too.
Last edited by jakob (2009-08-16 17:40:12)
TXP Builders – finely-crafted code, design and txp
Offline
#6 2009-08-17 09:14:04
- Bongo-man
- Member
- Registered: 2009-03-18
- Posts: 243
Re: How to list articles posted between two different days?
I thank you all, I will try.
Offline