Is it possible to filter list items according to a date range? I can find some documentation and discussion for Attributes V1, but not V2. I have tried using greater than ‘start-date’ and less than ‘end-date’ but no success. The filter does work if the specific date matches, but I have filters for ‘This Weekend’ and ‘This Month’ so need to match anything in between.
Most of the events I am filtering span multiple dates, from a few days to a few months so I need the results to show if any of the dates align.
Your List Filter setup is correct, but you have some elements from CMS Nest and v1, which isn’t compatible with List Filter v2. To fix this try using List Nest to nest the elements from the CMS items.
Hi Pedro, I’m looking for help with or documentation on how to set up the ‘to’ and ‘from’ values for the date filter with V2. E.g. can I add them both to the same checkbox, and what are the correct names for these attributes? My checkbox is labelled ‘This Weekend’ so i need > start date and < end date to both be valid.
Re: V1 Nest, can you tell me where you saw this? I do not load the V1 script and have tried to remove any reference to it. FYI, the date attributes are not displayed using List Nest.
Unfortunately there isn’t a single checkbox feature that natively supports both a “from” and “to” date filters.
But I can work in come custom code to achieve that for your project if you want.
And about CMS Nest, you have some attributes still there but you don’t have the v1 script so it’s no problem, if you want you can delete them.