I'm at the beginning of building a multi-site structure in Umbraco Cloud.
I've ran into the problem of setting the root node of each multi-site, where my navigation is going to the root of the Umbraco instance and not the "Home" node of each site.
Brand One
Home - hostname - brand-one.com
About
Brand Two
Home - hostname - brand-two.com
About
I want to be able to set the root node of the site on the home page.
Is there a best practice to set the root to the home node?
@{
var site = Model.Content.Site();
}
<ul>
<li><a href="@site.Url">@site.Name</a></li>
@foreach(var node in site.Children)
{
<li><a href="@node.Url">@node.Name</a></li>
}
</ul>
Multisite - Root Home Node
Hi All,
I'm at the beginning of building a multi-site structure in Umbraco Cloud.
I've ran into the problem of setting the root node of each multi-site, where my navigation is going to the root of the Umbraco instance and not the "Home" node of each site.
I want to be able to set the root node of the site on the home page. Is there a best practice to set the root to the home node?
Thanks
Martin
Hi martin,
What you can do is the following
You will need to replace
homePageDocTypeAlias
with the actual alias of your homepage doctype.Dave
is working on a reply...