In the backoffice, we have a range of nodes containing a range of Merchello products. Currently, each product's url is at /[slug]/. We would like to change this to something like /product-catalogue/[category]/[slug]/
I am lost at the proposed solution though. I know I need to create a custom content finder and have it execute before Merchello's, however I do not know where to begin with writing the logic within said content finder. Will I also need a custom IUrlProvider implementation to capture the found content and provide a new url for it? Or is this done a different way?
I would greatly appreciate anyone's help, whether it be code examples, explanations, or a pointer in the right direction.
Okay, with some digging and experimenting, I have figured out the Content Finder part. I can display the correct data when the url: /product-catalogue/[category]/[slug]/ is used. However, this has to be manually typed in.
In the UrlProvider, after a lot of debugging, it would seem Merchello products don't call the GetUrl function. So /[slug]/ remains the go to url for the products when you click on them, and I have no idea how to change this.
If anyone can help, I would greatly appreciate it! :)
How to Change Product Url
Hello everyone,
In the backoffice, we have a range of nodes containing a range of Merchello products. Currently, each product's url is at /[slug]/. We would like to change this to something like /product-catalogue/[category]/[slug]/
I have seen the following post about pretty much the same question: https://our.umbraco.org/projects/collaboration/merchello/merchello/74041-path-to-product-url
I am lost at the proposed solution though. I know I need to create a custom content finder and have it execute before Merchello's, however I do not know where to begin with writing the logic within said content finder. Will I also need a custom IUrlProvider implementation to capture the found content and provide a new url for it? Or is this done a different way?
I would greatly appreciate anyone's help, whether it be code examples, explanations, or a pointer in the right direction.
Thank you!
Okay, with some digging and experimenting, I have figured out the Content Finder part. I can display the correct data when the url: /product-catalogue/[category]/[slug]/ is used. However, this has to be manually typed in.
In the UrlProvider, after a lot of debugging, it would seem Merchello products don't call the GetUrl function. So /[slug]/ remains the go to url for the products when you click on them, and I have no idea how to change this.
If anyone can help, I would greatly appreciate it! :)
I'm having the exact same issue. Content Finder works but IUrlProvider doesn't.
is working on a reply...