I'd like to be able to limit the future entries of displaying pages not by hardcoding a certain date in the stop_before but by adding xx days/months to the cur_date.
By using the php function strtotime it's possible to use such notation but I don't know how to combine this with the couch cur_date.
How would this be possible?
- Code: Select all
<cms:pages masterpage='agenda.php' limit='5' start_on=cur_date stop_before=cur_date+30days show_future_entries='1'>
By using the php function strtotime it's possible to use such notation but I don't know how to combine this with the couch cur_date.
- Code: Select all
<?php
$ts = strtotime("now");
echo date('Y-m-d', $ts), '<br />';
$tsDay = strtotime("30 day");
echo date('Y-m-d', $tsDay), '<br />';
$tsWeek = strtotime("+4 week");
echo date('Y-m-d', $tsWeek), '<br />';
?>
How would this be possible?