Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Solomon Shaffer 12 posts 75 karma points
    Apr 24, 2015 @ 00:22
    Solomon Shaffer
    0

    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!

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Apr 24, 2015 @ 00:45
    Hendy Racher
    0

    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:

        <add key="umbracoHideTopLevelNodeFromPath" value="true" />
    
  • Solomon Shaffer 12 posts 75 karma points
    Apr 24, 2015 @ 00:46
    Solomon Shaffer
    0

    That makes complete sense. Thank you so much!

Please Sign in or register to post replies

Write your reply to:

Draft