I’m working on a site and I’d like to create two pages for entities in a given saved filter.
I’ve set up my default location page template, location.tsx
, which uses the document.slug
field for the URL (currently set to state/city/addressLine1). This template works fine locally and when published.
I’ve created a second template, sem.tsx
, where the URL is document.slug + /SEM
. When I try to publish this, the system says there is a conflict, because two pages are trying to use the same slug. I’m also having an issue with viewing the SEM type pages locally, because modifying the URL as I have done only kicks in when the page is published. Is there a better way for me to set this up?
I was able to accomplish this by using the slugField
parameter in the stream config object
Documentation here: Paths and Slugs | Hitchhikers
1 Like