Currently I'm implementing a multingual website in an Umbraco 4.5.2 install
This is my site structure:
- en ..methodology ..om shell ..software
- nl .. methodologie .. om shell .. software
The problem I have, is that if click on a page, say software.aspx, the system cannot figure out if this is a page for the Dutch website or the English website, since there are two pages called 'software', one under the node of the English homepage (en) en one under the node of the Dutch homepage (nl)
You need to setup the hostheaders for each branch using the "mange hostnames" function, which will appaers when you right click a node.
If you have not done so already you need to add the dutch language in the "settings" section under languages. Just right click and choose.
Then setup the hostnames.
If you're doing a local development currently you can just set it up like en.local and nl.local (if you have set this up in your hosts file of course, and then you need to configure the sites in IIS as well).
Appreciate your help, I have edited the host names,
so for the node 'en' I set the host name settings to:
en.local language: English (United States)
for the node 'nl' I set the host name settings to:
nl.local language: Dutch (Belgium)
In IIS I edited the bindings for my local website 'flexisle': I added the following host names:
en.local nl.local
I restarted IIS and tested the navigation of my multlingual site again, but under properties of, say the 'en' node, the properties for the software textpage are still referring to software.aspx. Only the property 'alternative link' is reffering to: http://en.local/software.aspx
Maybe you need to create two seperate sites in the IIS? It's been a while since I did a configuration so it's not fresh in my memory. But try this...:)
Page not found
No umbraco document matches the url 'http://localhost/en/methodology.aspx'
umbraco tried this to match it using this xpath query'/root/*/* [@urlName = "en"]/* [@urlName = "methodology"] | /root/* [@urlName = "methodology"]')
This page can be replaced with a custom 404 page by adding the id of the umbraco document to show as 404 page in the /config/umbracoSettings.config file. Just add the id to the '/settings/content/errors/error404' element.
Indeed, I just tried Chris' solution, and it worked. Phew, that's one problem less. Now I just need to find a way to attach an .mdf file made with Sql Server Express 2008 R2 to a Sql Server WebEdition 2008 database. Apparantly Sql Server Express 2008 R2 (version 661) is not compatible witht Sql Server Webedition 2008 (version 655). Can you believe that!!
Ultimately my client will have to upgrade his version of sql server to sql server 2008 R2 or I will have to downgrade my version of sql server on my development machine to sql server express 2008
problem with multilingual site and navigation
Hi,
Currently I'm implementing a multingual website in an Umbraco 4.5.2 install
This is my site structure:
- en
..methodology
..om shell
..software
- nl
.. methodologie
.. om shell
.. software
The problem I have, is that if click on a page, say software.aspx, the system cannot figure out if this is a page for the Dutch website or the English website, since there are two pages called 'software', one under the node of the English homepage (en) en one under the node of the Dutch homepage (nl)
How can I solve this?
Thanks for your help,
Anthony Candaele
Belgium
Hi Anthony
You need to setup the hostheaders for each branch using the "mange hostnames" function, which will appaers when you right click a node.
If you have not done so already you need to add the dutch language in the "settings" section under languages. Just right click and choose.
Then setup the hostnames.
If you're doing a local development currently you can just set it up like en.local and nl.local (if you have set this up in your hosts file of course, and then you need to configure the sites in IIS as well).
I hope this helps.
/Jan
Hi Jan,
Appreciate your help, I have edited the host names,
so for the node 'en' I set the host name settings to:
en.local
language: English (United States)
for the node 'nl' I set the host name settings to:
nl.local
language: Dutch (Belgium)
In IIS I edited the bindings for my local website 'flexisle':
I added the following host names:
en.local
nl.local
I restarted IIS and tested the navigation of my multlingual site again, but under properties of, say the 'en' node, the properties for the software textpage are still referring to software.aspx. Only the property 'alternative link' is reffering to: http://en.local/software.aspx
Have I overlooked something?
greetings,
Anthony
Hmmm
Maybe you need to create two seperate sites in the IIS? It's been a while since I did a configuration so it's not fresh in my memory. But try this...:)
/Jan
Hi Jan,
I tried to get my multlingual website running on my local machine using seperate websites, but is isn't working.
Currently I have this site structure in Umbraco:
The properties of my pages under a site node, say the page 'methodology' under the site node 'en' look like this:
but if I click the http://localhost/en/methodology.aspx link I get this message in the browser:
Page not found
No umbraco document matches the url 'http://localhost/en/methodology.aspx'
umbraco tried this to match it using this xpath query'/root/*/* [@urlName = "en"]/* [@urlName = "methodology"] | /root/* [@urlName = "methodology"]')
This page can be replaced with a custom 404 page by adding the id of the umbraco document to show as 404 page in the /config/umbracoSettings.config file. Just add the id to the '/settings/content/errors/error404' element.
Should I configure my web.config file?
Thanks for your help,
Anthony
Hi Anthony
It should not be neccesary to make any modification in the web.config.
Have you tried to republish the entire site and update the XML cache?
/Jan
I did republish the entire site, but I did not update the XML cache, in fact, I don't know how to update the XML cache : )
When you go to the "Content" node and right click it you can choose to "Republish the entire site". All this does is to update the XML cache :-)
/Jan
Hi Anthony
I'm sorry that I seem to have overlooked that you might not had made the proper setup in the hosts file but I guess that you know how to do that by now, as Chris have told you in this post? http://our.umbraco.org/forum/using/ui-questions/17070-multilanguage-settings-on-local-machine?p=0#comment63942
I should really have been more clear about that. My bad :-)
/Jan
Hi Jan,
Indeed, I just tried Chris' solution, and it worked. Phew, that's one problem less. Now I just need to find a way to attach an .mdf file made with Sql Server Express 2008 R2 to a Sql Server WebEdition 2008 database. Apparantly Sql Server Express 2008 R2 (version 661) is not compatible witht Sql Server Webedition 2008 (version 655). Can you believe that!!
Ultimately my client will have to upgrade his version of sql server to sql server 2008 R2 or I will have to downgrade my version of sql server on my development machine to sql server express 2008
Sigh,
Anthony
Hi Anthony
Glad to hear you have one problem less :-)
What? That is really weird. Major versions I can understand but minor revisions should not be incompatible - tough luck man :-/
Hope you find a way around it.
/Jan
is working on a reply...