Hi to all,
I'm developing a new web site with umbraco v.4
The site have 2 language and i have created 2 root nodes
with 2 hostnames, one is www.mysite.com with language
italian and the other is en.mysite.com with language
english.
If i have a macro (who use an usercontrol) inserted in a
page under one of the 2 root nodes is possible to get the
language of the parent node?
I'm using .net in version 2.0
Thank's 4 the help!
Marco
i think you are right, but now i have an other problem.
In VS 2008 i have the umbraco solution where i'm working, with the reteference at all the umbraco' s dll, but when i try to use umbraco.library doesn't work, visual studio doesn't know what is... :(
get the hostname language settings
Hi to all, I'm developing a new web site with umbraco v.4 The site have 2 language and i have created 2 root nodes with 2 hostnames, one is www.mysite.com with language italian and the other is en.mysite.com with language english. If i have a macro (who use an usercontrol) inserted in a page under one of the 2 root nodes is possible to get the language of the parent node? I'm using .net in version 2.0 Thank's 4 the help! Marco
Hi Marco,
You could try umbraco.library.GetCurrentDomains(nodeId)[0].Language This returns the first assigned language
Cheers,
Richard
Hi Richard, thank you for the reply,
i think you are right, but now i have an other problem.
In VS 2008 i have the umbraco solution where i'm working, with the reteference at all the umbraco' s dll, but when i try to use umbraco.library doesn't work, visual studio doesn't know what is... :(
Any ideas?
Thank for your help..
Marco
ok i have found the problem, the namespace of the user control was incorrect, i have put my usercontrol into umbraco namespace and all work fine.
Marco
is working on a reply...