I'm just getting started with uCommerce, and stumbled upon a small thing.
I created a Document Type called Product, with a "matching template". And now, without having set anything up, this Document Type/Template shows up when I click on my product links.
I haven't created any content (for the Product-page) but somehow this still works. Can anyone explain this to me?
Now, as mentioned in my first post, I don't have any content nodes (yet). I have created a bunch of products in the uCommerce section of Umbraco. The URL I open is this:
And my Masterpage, which isn't linked to anything else than the matching template, shows up. What I can't figure out is how any of the rewrite rules above can redirect to a page that uses this masterpage/template.
uCommerce only needs two nodes in the content tree, to show the categories and products in a store.
Each of the nodes are associated with an URL, and a template, so the redirect rules just take the correct query string parameters, and redirect it to the corresponding aspx page.
The rewrite rules only look for the last parameters in the URL, ex. "/c-12/c-123/p-111" redirects to "/store/product.aspx?catalog=12&category=123&product=111".
Secret redirect (Product.aspx -> Product.master)
Hi there.
I'm just getting started with uCommerce, and stumbled upon a small thing.
I created a Document Type called Product, with a "matching template". And now, without having set anything up, this Document Type/Template shows up when I click on my product links.
I haven't created any content (for the Product-page) but somehow this still works. Can anyone explain this to me?
/Kristian
Im pretty sure thats the standard uCommerce \config\UrlRewriting.config rules (more URLRewrite info here: http://www.iis.net/downloads/microsoft/url-rewrite
Here is my ~/Config/UrlRewriting.config file:
Now, as mentioned in my first post, I don't have any content nodes (yet). I have created a bunch of products in the uCommerce section of Umbraco. The URL I open is this:
And my Masterpage, which isn't linked to anything else than the matching template, shows up. What I can't figure out is how any of the rewrite rules above can redirect to a page that uses this masterpage/template.
Hi Kristian,
uCommerce only needs two nodes in the content tree, to show the categories and products in a store. Each of the nodes are associated with an URL, and a template, so the redirect rules just take the correct query string parameters, and redirect it to the corresponding aspx page.
The rewrite rules only look for the last parameters in the URL, ex. "/c-12/c-123/p-111" redirects to "/store/product.aspx?catalog=12&category=123&product=111".
Hope that clears things up a bit.
/Lars
is working on a reply...