Search

I've hit a wall with something that should be very simple indeed. I have a section with a date field named "Date". I have added 365 entries to this entry using a script (one for each day of the year). I want to filter the section on this field, passing in $today to fetch today's entry, but I can't get it working.

I have tried:

  • {$today}, no results
  • 2009-02-15, no results
  • 2009-02 correctly returns February 2009
  • 2009 correctly returns 2009 entries

Am I doing something wrong, or should this be considered a bug with DS filtering/the Date field?

I'm on v2.0.1.

Sounds like the issue I just ran into:

Regarding the date range shortcuts, '2007' returns all entries from 2007, and '2007-01' returns all entries from January 2007, but '2007-01-01' returns no entries (though entries with that date exist). Should '2007-01-01' not also serve as a shortcut for '2007-01-01 to 2007-01-01'? I'm running 2.0.1 release.

Have you tried the range "2009-02-15 to 2009-02-15"?

Brian, yes this resolves the problem if I use {$today} to {$today}. How backward. Thanks!

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