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?
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.
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?
Hi Martinh,
You should have multiple "root" content nodes under Content for this to work.
Open up your web.config and search for:
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
Thank you Benjamin!
The hide top level = false worked great.
is working on a reply...