Actually the behaviour is pretty much the default one. The root node is just a container withouth template and umbraco automatically decides to open the first node.
The other pages just make their name as part of the URL.
For example, a node named Registration under Root 1 and Root 2 would generate two urls: domain.com/registration & subdomain.domain.com/registration
Maybe I'm wrong but Umbraco opens a first node in the tree, not first from the root. Umbraco opens a first node in the tree with template and published.
I thin using "umbracointernalRedirectId" property will solbe your problem in easiest way.
Just add "umbracointernalRedirectId" content picker to root node and select start page for each domain.
You are very right, this is exactly what Umbraco was doing and I didn't know how to make the second root use his first child and not the first child of the first root.
This property "umbracointernalRedirectId" did the magic!! Is this documented somewhere, seems like something quite common!
Two nodes and two different domains for the homepage "/"
Hello!
In the root node of my project, I have two nodes with different domains assign to it as follows:
When I access subdomain.domain.com however, the page that opens is the Landing page of domian.com.
If I access subdomain.domain.com/LandingPage then the correct one opens.
What I'm doing wrong? How can I achieve that when accessing subdomain.domain.com his first child node opens and not the other one?
Many thanks!
Hi
How do you define what page you have to open?
Do you have some sort of redirect on root node?
Maybe you have content picker with "umbracointernalRedirectId" alias.
Give us more info.
Thanks,
Alex
Actually the behaviour is pretty much the default one. The root node is just a container withouth template and umbraco automatically decides to open the first node.
The other pages just make their name as part of the URL.
For example, a node named Registration under Root 1 and Root 2 would generate two urls: domain.com/registration & subdomain.domain.com/registration
Hi lpalou,
Maybe I'm wrong but Umbraco opens a first node in the tree, not first from the root. Umbraco opens a first node in the tree with template and published.
I thin using "umbracointernalRedirectId" property will solbe your problem in easiest way.
Just add "umbracointernalRedirectId" content picker to root node and select start page for each domain.
Hope it will help.
Thanks,
Alex
You are very right, this is exactly what Umbraco was doing and I didn't know how to make the second root use his first child and not the first child of the first root.
This property "umbracointernalRedirectId" did the magic!! Is this documented somewhere, seems like something quite common!
Thank you very much! You saved my day! :)
Glad to help.
I found a list of these properties here:
http://www.wiliam.com.au/wiliam-blog/sydney-web-design-umbraco-reserved-properties-and-their-usage
Have a nice evening.
Thanks,
Alex
is working on a reply...