Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Limit by Day

#1 2006-02-17 17:57:22

xxxBR
New Member
Registered: 2006-02-15
Posts: 4

Limit by Day

Hello!

Is there any way to limit article list by posted day?!

e.g. Assume i Have posted three articles two days ago and now I’m posting new articles. I would like to replace that three past articles with the new ones and send them to the archive. Observe I’m using a list with several articles in on page. Hope you can understand me :-(

Thanks

BTW: sorry 4 my poor english.

Offline

#2 2006-02-18 03:48:02

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Limit by Day

Hmm, well, not exactly. You’ll need a plugin, I think.

Offline

#3 2006-02-18 04:37:29

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

Re: Limit by Day

see chh_article_custom – the attribute ‘time’

maybe in conjunction with chh_if_data

there may be other / better solutions

Offline

#4 2006-02-18 06:13:34

xxxBR
New Member
Registered: 2006-02-15
Posts: 4

Re: Limit by Day

Here is a quick and dirty solution using chh_article_custom in conjunction with chh_if_data. Thanks for your useful tip nardo! Not tested yet… but I hope it works… :-/

{txp:chh_if_data} {txp:chh_article_custom listform=“list_articles” day=”-0”/} {txp:else /} {txp:article_custom form=“list_articles” /} {/txp:chh_if_data}

{ } = < >

Regards

Last edited by xxxBR (2006-02-19 05:54:27)

Offline

  1. Index
  2. » Archives
  3. » Limit by Day

Board footer

Powered by FluxBB