Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-08-21 19:11:02

mwr
Member
From: Canada
Registered: 2006-01-31
Posts: 167
Website

Automatically display older articles

Is there a way to automatically display a different article from the archives at the beginning of each day? In other words, I want to recycle some older articles. But I don’t want to have to go into the list every day and choose one to reset to today’s date.

The articles would ideally be displayed in the same order as they were orginally published, although random choices might work as well.

Thanks for any help.


Mark

Offline

#2 2009-08-21 19:22:58

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Automatically display older articles

Mmm. Never tried to do this, but what about:

<txp:article_custom form="your_form" sort="rand()" limit="1"  />

Or container style:

<txp:article_custom sort="rand()" limit="1" >
<p><txp:permlink><txp:title /></txp:permlink></p>
...
</txp:article_custom>

Offline

#3 2009-08-21 20:00:52

mwr
Member
From: Canada
Registered: 2006-01-31
Posts: 167
Website

Re: Automatically display older articles

That produces a random article for every visit or refresh. I was thinking of an “article of the day” from the archives. Every 24 hours, a different article would automatically display.


Mark

Offline

Board footer

Powered by FluxBB