I have an element in my plugin Data Jedi called Path List Extractor that allows you to set up to 5 path list ‘object types’. What this does is whenever the url path list contains a value that matches the unique field value of one of the 5 types, it exposes that ‘object’ as the selected thing.
I built this because of years of having to setup URL path list structures like this for clients, was just too cumbersome. The need to conditionally represent the URL path list item # as representative of data type A or data type B is inefficient, and adds layers of complexity. Additionally, Bubble doesn’t have the ability to auto detect the path list ‘object’ in the same way they do with URL parameters, so the plugin element solves for that problem as well.
What it makes possible is easy setup for a developer to implement URL structures like
- www.website.com/electricians/massachusetts/boston/hvac
- www.websote.com/electricians/massachusetts/boston
- www.website.com/electrcicians/boston/hvac
- www.website.com/electricians/hvac
- www.website.com/electricians/boston
etc. etc., without ever needing to conditionally specify which url path list item is representing which type of internal data.
It also makes it much easier to use dynamically structured templates for the SEO meta title, description etc. There is also a plugin element for breadcrumbs as well so you can easily and dynamically show the breadcrumb path to the user.
But without the plugin it can be done…just time consuming
Yes, but you can not use the ‘page content type’ as when you are going to navigate to the page if using go to page action, the data to send needs to be text and be the URL path list you want, so you can not be forced by bubble to send data as is required when the page content type is used.
No need to rethink page structure. I don’t know of any workarounds.
It is one page, or at least should be. So you have a single page that is setup to have a reusable element that is your search feature, and another that is your product display feature. You should name the page ‘product’ and go for url of www.website.com/product/category/subcategory/product_name/details
This is necessary so that conditionally, if the details is not in URL path list, you show the search function, but if it is you show the product details feature, and you can dynamically filter your search based on the URL path list, so that as they select a category and subcategory, you do not change pages, and when they are done looking at details and press back button, they are exactly where they would expect to be with the search and filters still in tact as they were before selecting one product to look at the details.