Copied to clipboard

Flag this post as spam?

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


  • marthin 87 posts 106 karma points
    Aug 30, 2010 @ 17:02
    marthin
    0

    Multiple sites with same names of pages collisions

    Question: If you have two sites running on one a single installation then you can reach both sites in the backend. If you create two new pages with the same name but in two different sites then umbraco will only be able to link one of these sites. How to solve this?

  • Jamie Howarth 306 posts 773 karma points c-trib
    Aug 30, 2010 @ 17:28
    Jamie Howarth
    0

    Hi Martinh,

    You should have multiple "root" content nodes under Content for this to work.

    Open up your web.config and search for:

    <add name="umbracoHideTopLevelNodeFromPath" value="true" />

    Change this to "false" instead of "true".

    Right-click on each node and click "Manage hostnames". If your website is www.mydomain.com then set each hostname to be "www.mydomain.com/url-of-this-node",

    All nodes under each site will now be fully unique and therefore Umbraco will recognise which node to render when visiting the URL.

    The other alternative is to add a property with alias "umbracoUrlName", type Textstring, to each doctype, and then use this to change the URL of pages so that they are unique. Umbraco uses the URL to perform an XPath search and therefore will return the first node with the matching URL, and you can use the umbracoUrlName property to change a node's URL.

    HTH,

    Benjamin

  • marthin 87 posts 106 karma points
    Aug 31, 2010 @ 11:09
    marthin
    0

    Thank you Benjamin!

    The hide top level = false worked great.

Please Sign in or register to post replies

Write your reply to:

Draft