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 have two (2) navigation:
Desktop Navigation and Mobile Navigation
Multisite
www.example.com/site-one www.example.com/site-two www.example.com/site-three www.example.com/site-four
below is the current code am using:
IPublishedContent currentPageNode = Model.Content; IPublishedContent menuroot = Umbraco.TypedContentAtRoot().First().Children(x => x.DocumentTypeAlias == "menu").First();
i want to be able to use the current url on multisite
Hello Emmanuel Ramanyimi,
you can set those 4 sites in same URLs as like
www.example.com/site-one
www.example.com/site-two
www.example.com/site-three
www.example.com/site-four
Then there is an option in Umbraco like Culture and Hostnames where you can add the new domain and in that domain write like www.example.com/site-one for 1st site
www.example.com/site-two for the second site and so on.
Hope that will help,
Ronak Panchal.
Umbraco.TypedContentAtRoot().First()
If you user Umbraco.AssignedContentItem.Site() or anything that is the current page .Site() this will get you your root node for that site.
Umbraco.AssignedContentItem.Site()
Matt
thanks it works
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Umbraco Multisite
I have two (2) navigation:
Desktop Navigation and Mobile Navigation
Multisite
www.example.com/site-one www.example.com/site-two www.example.com/site-three www.example.com/site-four
below is the current code am using:
IPublishedContent currentPageNode = Model.Content; IPublishedContent menuroot = Umbraco.TypedContentAtRoot().First().Children(x => x.DocumentTypeAlias == "menu").First();
i want to be able to use the current url on multisite
Hello Emmanuel Ramanyimi,
you can set those 4 sites in same URLs as like
www.example.com/site-one
www.example.com/site-two
www.example.com/site-three
www.example.com/site-four
Then there is an option in Umbraco like Culture and Hostnames where you can add the new domain and in that domain write like www.example.com/site-one for 1st site
www.example.com/site-two for the second site and so on.
Hope that will help,
Ronak Panchal.
Umbraco.TypedContentAtRoot().First()
If you user
Umbraco.AssignedContentItem.Site()
or anything that is the current page .Site() this will get you your root node for that site.Matt
thanks it works
is working on a reply...