The community member is working on a multi-purpose venue website that needs to display events by year, month, and individual event pages. They are looking for guidance on how to achieve this using Notion DB. The comments suggest two options:
Option 1: Use dynamic pages with the structure website.com/events/:year/:month/:slug. This would allow filtering events by year and month, and listing all events on the /events page.
Option 2: Use query parameters with the structure website.com/events?year={}&month={}, and have a separate page for individual events at website.com/events/:slug.
The comments also mention that the Notion API has date filters, but they do not have a specific filter for just the year, as it needs to be an ISO 8601 date.
Haven't looked at the notion api since i made the template but I recall they have a nice date filter.
Option 1, dynamic page
/events/:year/:month/:slug
While not necessary to prefix with events, I typically like doing this. You can also list all events there. Makes it easier to filter in analytics tools too.
Would need to see Notion api but maybe they have a filter you can use for year and month.