Search

I have a data sources that is filtered on "publish date": equal to or earlier than {$today} {$current-time}

How can I extend this with code to make sure the "publish date" is not older than 2 days ago? I need this for a news-sitemap.

Thanks in advance!

Ah, you can use "to". I've created some php code to add a {$today-minus-two-days} and now I can filter using:

{$today-minus-two-days} to {$today} {$current-time}

You can also use everything that works with PHPs strtotime() function. So two days ago to now should also work.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details