Filtering CMS Items Based on Today's Current Date
A
Andrew Pons
It would be very useful if CMS filters could be applied based on the current date. For example, if I've got a Collection that contains upcoming events, I'd like to filter the list so that old events that have already happened are no longer displayed.
Currently it's possible to set a filter based on the date, but the date value is static—meaning I'd have to come in every day and manually update it to the current date in order to hide old events. It would be awesome if the date could be set dynamically to "today" or "current date" to make this filtering automatic.
Photo Viewer
View photos in a modal
Log In
H
Henk de Blauw
Seems like a quick win, we need it. Similar to: https://www.framer.feedback/feature-requests/p/cms-date-filter-today-as-relative-date-for-scheduling-content-updates
Autopilot
Merged in a post:
Add "Is After Today" and other dynamic options to date filter in collections display
D
Dustin Reynolds
The date filter in Framer currently only supports a static date value, so there's no built-in "is after today" option that dynamically updates based on the current date. To avoid custom code and work-arounds, create new dynamic filters. Useful for events, educational, community, gym, etc. websites with classes and events to display.
P
Peter Koelman
We absolutely need this and I don't understand why we don't have this yet? It's already possible to relate to today with the "tomorrow", "1 week ago" etc. date formatting, so it does have the information. We just want to be able to use that information for CMS collection filtering.
Autopilot
Merged in a post:
Relative Date filter: after / on / before TODAY
N
Nicky Grünfeld
Allow me to filter a CMS collection (eg. events) by date relative to today, to be able to show EG. upcoming OR past events.
A
Andrew Pons
- As frequently as is needed to keep the old events out of the list. It varies based on our events schedule.
- I'd imagine it would be useful for any field where the field type is "date." Right now for my purposes that only applies to our events CMS collection where I want to hide events that have already passed, but I could imagine other uses where showing/hiding items based on their relation to today's date (past or future) would be helpful. For example you could create a date field called "publish date" on a blog Collection and hide any CMS items where Publish Date is set in the future. This would allow you to basically schedule posts to become visible on a specified date.
- I don't have any time zone requirements currently, I would trust you all to figure out the best implementation for that. It could off local machine time or arbitrarily reference UTC or something like that.