Page 1 of 1

serendipity_fetchPrintEntries - range

Posted: Thu Oct 29, 2009 2:33 pm
by yellowled
I guess it should be possible to use the range parameter for serendipity_fetchPrintEntries for something like "fetch only entries from the past 14 days" or something, but ... erm ... how?

I think I'd have to use:
Other (null, 3-dimensional Array, ...):
Entries newer than $modified_since will be fetched
But frankly, I have no idea what this means ..?

YL

Re: serendipity_fetchPrintEntries - range

Posted: Thu Oct 29, 2009 4:23 pm
by garvinhicking
Hi!

To fetch entries from the past 14 days you use:

config.inc.php:

Code: Select all

$range = array(time()-86400*14, time());
$serendipity['smarty']->assign('trange', $range);
.tpl:

Code: Select all

{serendipity_fetchPrintEntries range=$trange}
HTH,
Garvin