Multilinguagual site with umbraco, with language as subfolders and just one document per language
Hi all,
I need to implement a site that is multilanguage (at the moment Italian and English) but that runs both on subfolders and has a single document per "page".
Sure just use a dummy domain to assign the language to the pages.
So first add italian to the languages tree in the settings sections
Then go back to content and right click you home it page, select manage hostname and use a dummy domain (like dummy.it) to link the language to the node structure
Same for the english part of your site, use a dummy domain to link a language to the node structure
THis will make sure that the culture is set correctly (for using dictionary items,...)
when I do domain.ext/it/chi-siamo.aspx I get this error:
No umbraco document matches the url 'http://www.nhday.eu/it/chi-siamo.aspx'
umbraco tried this to match it using this xpath query'/root/node/node [@urlName = "it"]/node [@urlName = "chi-siamo"] | /root/node [@urlName = "chi-siamo"]')
that's a first step :) But what will appear then when I just do nhday.eu?
But I really wanted was not to have 2 real "trees", but just one and have different translations of the same node: but I don't want to choose the language based on some cookie, but based on the folder I'm in.
Multilinguagual site with umbraco, with language as subfolders and just one document per language
Hi all,
I need to implement a site that is multilanguage (at the moment Italian and English) but that runs both on subfolders and has a single document per "page".
What I mean is that I more less what a mix between the 1:1 sites explained here http://umbraco.org/documentation/books/multilingual-11-sites and the "multilingual site in one domain" explained here: http://our.umbraco.org/wiki/how-tos/running-multi-lingual-sites-under-a-single-domain
Is it possibile? is there a way to do it?
Thank you
Simone
Comment author was deleted
Hi Simone,
Not sure I can follow you here, can you shed some light on your structure?
is it like this?
- Content
-- Home EN
--- Subpage
--- Subpage 2
-- Home Other language
--- Subpage
--- Subpage 2
Yes, exactly
- Content
-- Home EN
--- Subpage
--- Subpage 2
-- Home IT
--- Subpage
--- Subpage 2
But I don't want to have different subdomains, just different subfolders... also I want to be able to have the translations directly inside the node
Comment author was deleted
Hi Simone,
Sure just use a dummy domain to assign the language to the pages.
So first add italian to the languages tree in the settings sections
Then go back to content and right click you home it page, select manage hostname and use a dummy domain (like dummy.it) to link the language to the node structure
Same for the english part of your site, use a dummy domain to link a language to the node structure
THis will make sure that the culture is set correctly (for using dictionary items,...)
Problem is:
when I do domain.ext/it/chi-siamo.aspx I get this error:
No umbraco document matches the url 'http://www.nhday.eu/it/chi-siamo.aspx'
umbraco tried this to match it using this xpath query'/root/node/node [@urlName = "it"]/node [@urlName = "chi-siamo"] | /root/node [@urlName = "chi-siamo"]')
Simo
Comment author was deleted
Hi Simone,
By default umbraco won't include the top level nodes in the url.
You can change that behaviour in the app settings of the web.config (umbracoHideTopLevelNodeFromPath)
ok...Thank you
that's a first step :) But what will appear then when I just do nhday.eu?
But I really wanted was not to have 2 real "trees", but just one and have different translations of the same node: but I don't want to choose the language based on some cookie, but based on the folder I'm in.
Comment author was deleted
then you simply go to the first page in the node tree
I have seen problems of using the multi-lingual setup if a true hostname is assigned at level 1. It will use it over the fake entries.
Thus, be sure the only entries in the site tree are for the language hostname.
Case
Thank you
It was the <add key="umbracoHideTopLevelNodeFromPath" value="false" /> key missing.
It was not what I wanted to accomplish, but for the moment it works :)
is working on a reply...