I am trying to create a multilanguage site that functions logical, while also maintaining a clean structure. What I would like to have is the following structure :
Content
+ Home [NL]
| + News Section
| - \ News Item 1
| | Separate Page
| \ Last Page
+ Home [EN]
- + News Section
- - \ News Item 1
- |Separate Page
- \ Last Page
I tried to give the Home nodes the umbracoUrlName of 'nl' and 'en', but that makes their own url nl.aspx and en.aspx. I'd like to change that to /nl/home.aspx and /en/home.aspx, but I can't get ANY umbracoUrlAlias to work on the Home nodes. It does work for the lower nodes.
Did you try to enter nl/home and en/home as umbracoUrlAlias?
umbracoUrlAlias doesn't change the url, it's just another url to getting to the page!
If you need to permanently change the url, you'd need umbracoUrlName
Also, have a play with the umbracoHideTopLevelPath settings in web.config.
thanks for taking time to look into this. Yes I entered a number of things as the umbracoUrlAlias, i.e. en/home, but also home-en and stuff like that. It doesn't work on the root nodes, but it does work on nodes below that.
I have set the umbracoHideTopLevelPath to false, because I need that to give all subnodes the language prefix. I hope that doesn't originates this problem.
I have made a couple of urlRewrite rules to rewrite the en/default.aspx to en.aspx, so I am able to reference the pages as I want now, but I still don't understand why I cannot get the urlAliases to work....:-k
umbracoUrlAlias rules! (If you get it to work :))
Hi all!
I am trying to create a multilanguage site that functions logical, while also maintaining a clean structure. What I would like to have is the following structure :
Content
+ Home [NL]
| + News Section
| - \ News Item 1
| | Separate Page
| \ Last Page
+ Home [EN]
- + News Section
- - \ News Item 1
- |Separate Page
- \ Last Page
I tried to give the Home nodes the umbracoUrlName of 'nl' and 'en', but that makes their own url nl.aspx and en.aspx. I'd like to change that to /nl/home.aspx and /en/home.aspx, but I can't get ANY umbracoUrlAlias to work on the Home nodes. It does work for the lower nodes.
How is this possible?
Hope anyone can help...
Chris
Hi Chris,
Did you try to enter nl/home and en/home as umbracoUrlAlias?
umbracoUrlAlias doesn't change the url, it's just another url to getting to the page!
If you need to permanently change the url, you'd need umbracoUrlName
Also, have a play with the umbracoHideTopLevelPath settings in web.config.
Cheers,
/Dirk
Hi Dirk,
thanks for taking time to look into this. Yes I entered a number of things as the umbracoUrlAlias, i.e. en/home, but also home-en and stuff like that. It doesn't work on the root nodes, but it does work on nodes below that.
I have set the umbracoHideTopLevelPath to false, because I need that to give all subnodes the language prefix. I hope that doesn't originates this problem.
I have made a couple of urlRewrite rules to rewrite the en/default.aspx to en.aspx, so I am able to reference the pages as I want now, but I still don't understand why I cannot get the urlAliases to work....:-k
Chris
is working on a reply...