I am a bit new to Umbraco, but am loving it. And the community is amazing!
I have a question about nesting document types and the resulting urls. I have a document type called "ProductList" and a child document type called "Product". I have a root content item called Products which is a ProductList doc type. Then I have a number of Product content items under it (for example, Product 1 and Product 2). The URL created for each product is /product-1 and /product-2, etc. Should it not be /products/product-1 and /products/product-2, etc. since they are children of a ProductList called Products?
Hi, yes, normally that's the url structure you'd expect, but becuase the ProductList docType is at the top level it's excluded from the url structure by default. There's a setting in the web.config to change this behaviour:
Nesting Document Types and Canonical Urls
I am a bit new to Umbraco, but am loving it. And the community is amazing!
I have a question about nesting document types and the resulting urls. I have a document type called "ProductList" and a child document type called "Product". I have a root content item called Products which is a ProductList doc type. Then I have a number of Product content items under it (for example, Product 1 and Product 2). The URL created for each product is /product-1 and /product-2, etc. Should it not be /products/product-1 and /products/product-2, etc. since they are children of a ProductList called Products?
Here are a few screens. Thoughts?
http://screencast.com/t/Jw0cr3T3
http://screencast.com/t/3akVxEnb
Thank you in advance!
Hi, yes, normally that's the url structure you'd expect, but becuase the ProductList docType is at the top level it's excluded from the url structure by default. There's a setting in the web.config to change this behaviour:
That makes complete sense. Thank you so much!
is working on a reply...