Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Aditya.A 77 posts 96 karma points
    Aug 05, 2013 @ 14:49
    Aditya.A
    0

    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 ..

     

  • urmila 18 posts 88 karma points
    Aug 06, 2013 @ 08:56
    urmila
    0

    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-Control

    Thanks and regards

    Urmila

  • Aditya.A 77 posts 96 karma points
    Aug 06, 2013 @ 11:19
    Aditya.A
    0

    Hi,

    thank u for ur reply..but i am very new to umbraco ..can u please give exact steps to be followed in detail..

  • urmila 18 posts 88 karma points
    Aug 06, 2013 @ 13:16
    urmila
    0

    Hi

    is it necessary to use user control?because you can create parial views also

     

    Urmila

  • Aditya.A 77 posts 96 karma points
    Aug 06, 2013 @ 13:20
    Aditya.A
    0

    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 

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Aug 06, 2013 @ 13:33
    Dennis Aaen
    0

    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

  • Aditya.A 77 posts 96 karma points
    Aug 06, 2013 @ 13:38
    Aditya.A
    0

    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...

  • urmila 18 posts 88 karma points
    Aug 06, 2013 @ 14:20
    urmila
    0

    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

    @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
    @{
        Layout = "null";
    }
    <div class="aboutUsContainer">
        <div>
            <h3>@Umbraco.Field("pageHeader")</h3>
        </div>
        <hr />

        <div >
                 @Umbraco.Field("bodyText")
        </div>

    <div>
    <label>@library.GetDictionaryItem("name")</label>
    <input type=textbox></input>
    </div></div>

     

  • Aditya.A 77 posts 96 karma points
    Sep 17, 2013 @ 03:09
    Aditya.A
    0

    Hello umila can u please contct me in Facbuk..im new to umbraco dev and really need some support. my id is aditya.arjula

Please Sign in or register to post replies

Write your reply to:

Draft