Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
var site = Model.Content.Site();
@foreach(var node in site.Children)
What you can do is the following
var site = Model.Content.AncestorOrSelf("homePageDocTypeAlias")
You will need to replace homePageDocTypeAlias with the actual alias of your homepage doctype.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted