Forums / Setup & design / problem with filtering by date

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

problem with filtering by date

Author Message

Lida Popelo

Saturday 09 October 2004 9:02:42 am

Hi All,

I have a class "some_class" with attribute "begin_date" of type date.
In template i want to fetch instances of SomeClass where "begin_date" >= today date, so i
wrote:

{let items = fetch(content, 
                   list,
                   hash(parent_node_id, 64,
                        attribute_filter, array(
                                                array(some_class/begin_date, 
                                                      '>='
                                                      currentdate())))}

But it dosen't work right :(
Please help me...

Gunnstein Lye

Monday 11 October 2004 5:04:07 am

Instead of writing some_class/begin_date, you should use the attribute id of that attribute (you can see it when you view the class).