You can use dictionary items for lables or static data(umbraco.library.GetDictionaryItem(alias)).Also there is option to use page properties for static field.
ok can these be associated with the controls of a user control?because we call the dll to create a macro in umbraco.
there the controls like lable,textbox,button in the contact us page. Now i want the same contact us page user control be be displayed inn germany and italy
sorry for asking stupid q,i have never delt with mulitlingual sites...
You can resuse parial view.Firstly you need to create parial view and render it in template page.Now your template will be connected to content pages in all languages and because of that it will show contents according to languages. second option is for static fields you can create properties which can be added in document types accociated with your template page and those properties will be accessible in every language specific content page where you can enter language specific contents.To access those fields you can use following in your template
User control management in multilingual website
Hello all,
I am working on multilingual site,with 2 languages germany and italy.
Now the contact us page is a user control with dropdown,lable and text filed (data is static,no db here)
Now i want the contact page for germany and italy.How to deal with this ..
Hi aditya..
You can use dictionary items for lables or static data(umbraco.library.GetDictionaryItem(alias)).Also there is option to use page properties for static field.
http://our.umbraco.org/forum/developers/api-questions/8879-How-do-I-get-DocumentType-Property-Values-out-of-Umbraco-Into-My-User-ControlThanks and regards
Urmila
Hi,
thank u for ur reply..but i am very new to umbraco ..can u please give exact steps to be followed in detail..
Hi
is it necessary to use user control?because you can create parial views also
Urmila
yes i have to use the user controls only.Beacuse the english version of the site used the user controls for contact us,
no i have to do the same in german and italy sites.so i have to use the same user control
Hi Aditya.A,
If you want to use dictionary items for lables or static data as Urmila said the documentation for this can be found here:
http://our.umbraco.org/documentation/Reference/Templating/Macros/Razor/using-dictionary-items
/Dennis
ok can these be associated with the controls of a user control?because we call the dll to create a macro in umbraco.
there the controls like lable,textbox,button in the contact us page. Now i want the same contact us page user control be be displayed inn germany and italy
sorry for asking stupid q,i have never delt with mulitlingual sites...
You can resuse parial view.Firstly you need to create parial view and render it in template page.Now your template will be connected to content pages in all languages and because of that it will show contents according to languages. second option is for static fields you can create properties which can be added in document types accociated with your template page and those properties will be accessible in every language specific content page where you can enter language specific contents.To access those fields you can use following in your template
Hello umila can u please contct me in Facbuk..im new to umbraco dev and really need some support. my id is aditya.arjula
is working on a reply...