I'm doing a website where I'm going to display for example product information. There'll be a number of products so I do not want to have each of them as content items.
I also would prefer not to create a /product/{something}/{something} route because I want the client to be able to control the urls completely.
So I read about the ContentFinder and the plan was to look up my product categories and/or product based on the incoming URL (which is working), and if I found a match - display a generic product page and load the relevant data dynamically onto it (SurfaceController perhaps?).
But I cannot seem to see how I can load such a generic controller/page from the ContentFinder or route to my generic page.
Does anybody have some resources or snippets that can guide me onwards? Or if I'm going down a completely incorrect method :)
Content Finder and Dynamic Content
Hi.
I'm doing a website where I'm going to display for example product information. There'll be a number of products so I do not want to have each of them as content items.
I also would prefer not to create a /product/{something}/{something} route because I want the client to be able to control the urls completely.
So I read about the ContentFinder and the plan was to look up my product categories and/or product based on the incoming URL (which is working), and if I found a match - display a generic product page and load the relevant data dynamically onto it (SurfaceController perhaps?). But I cannot seem to see how I can load such a generic controller/page from the ContentFinder or route to my generic page.
Does anybody have some resources or snippets that can guide me onwards? Or if I'm going down a completely incorrect method :)
Thanks in advance.
check this:
https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/88038-making-custom-urls-in-umbraco-76-without-document-type
https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/59312-Umbraco-7-setup-with-custom-route-values
is working on a reply...