Join the Webstudio community

Updated 3 weeks ago

Variables, slug - Notion

I'm working on a multi-purpose venue website, which will display various types of events.

I'd like to display the events for each year, month of the year & create individual page for event.

The idea is to have multiple components for my slug & combine them into dynamically generated pages - e.g.: website.com/2025/march/jazz-evening

How should I do that in Notion DB?
J
3 comments
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.

Option 2, query params

/events?year={}&month={}

Then a page for the event
/events/:slug
They dont have just year though as it needs to be an ISO 8601 date
Add a reply
Sign up and join the conversation on Discord