“Agency” is a data type on my site. I would like a logged out user to browse to websiteurlcom/agencyslug and have that specific agency’s data show up. I’ve given the index page the Agency data type and am getting the following results:
This URL works: wwwwebsiteurldotcom/index/agencyslug
This URL does NOT work: wwwwebsitedotcom/agencyslug
I want the URLs to be as short and simple for people to use/remember so ideally I don’t want to use the page name if I can avoid it.
Question 2:
If someone goes to wwwdotwebsitedotcom that obviously doesn’t have a data type, so how can I “default” data on the page? I’ve created a “home” set of data, but i can’t figure out how to make that the default if the page “Agency” is empty…
For Question 1: You cannot have a URL as websitedotcom/agencyslug since that’s on the index page, and the page name will always be there. An alternative is to have a page called agency or something like p, so that the resulting URLs could look like websitedotcom/agency/agencyslug or websitedotcom/p/agencyslug respectively
In case none of these work, consider using a service like CoAlias to achieve what you need
For Question 2: Create a variable group that stores data of a particular type - now that can be set as something you’ve fixed via a Do a search for expression in the data source, or dynamically by referring to the URL. Depending on the data in this group, you can render your page accordingly via conditions