Copied to clipboard

Flag this post as spam?

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


  • Adrian Alexa 50 posts 100 karma points
    Jan 19, 2012 @ 11:04
    Adrian Alexa
    0

    How to set default page in multiligual set up???

    I have tried to fallow this instruction

    "Add the umbracoInternalRedirectId property alias to your document type (en, de, fi) with a content picker and Umbraco will load the selected page’s content transparently; no url redirection."

    but is not ok for me. 

    I have a website that has 2 structure for both languages. I want to set english language to be defined as default.

    I also tried to move folder in content tab but could not move them.

    Which is the solution?

    Regards,

    Adrian

  • Fuji Kusaka 2203 posts 4220 karma points
    Jan 19, 2012 @ 11:14
    Fuji Kusaka
    0

    Hi Adrian,

    May be you could make some changes to your URLRewritting.config file and make a permanent redirection to either the en/de/fi.

    Something like www.domain.com/en, www.domain.com/de or www.domain.com/fi

    <add name="De" virtualUrl= "^~/$"
    rewriteUrlParameter="ExcludeFromClientQueryString"
    destinationUrl="~/de/"
    ignoreCase="true"
    redirect="Application"
    redirectMode="Permanent" />

     

    //fuji

  • Rodion Novoselov 694 posts 859 karma points
    Jan 19, 2012 @ 11:16
    Rodion Novoselov
    0

    Hi. AFAIK, umbraco doesn't have any inbuilt tool for redirection based on the user's language. If you want to do it you can for instance develop some macro that inspects the Request.UserLanguages array and redirect the user to the specific start page and than embed this macro to your templates, or it can be implemented in some custom HttpModule and registered in web.config and so on.

  • Adrian Alexa 50 posts 100 karma points
    Jan 19, 2012 @ 11:17
    Adrian Alexa
    0

    i do not want a permanently redirect, only when first load website to open the page in english

  • Fuji Kusaka 2203 posts 4220 karma points
    Jan 19, 2012 @ 11:25
    Fuji Kusaka
    0

    Hi Adrian,

    What do you mean by first Load website to open the page in English??

    //fuji

  • Adrian Alexa 50 posts 100 karma points
    Jan 19, 2012 @ 11:32
    Adrian Alexa
    0

    This is my template: 

    When i load website sitename.com it loads content that is in HoteloProRo. I want to load HoteloPro EN

  • Rodion Novoselov 694 posts 859 karma points
    Jan 19, 2012 @ 11:40
    Rodion Novoselov
    0

    It seems I understand. What you need is to make all your home nodes the top level nodes. For instance:

    Content
        en
        de
        fi

    Than the "en" node will be accessible by the url "/" and "de" and "fi" nodes by "/de/" and "/fi/" respectively.

    Make sure that you have "hideTopLevelNodes = true" in your web.config file.

    Also you will still need to implement some process of setting the current culture based on the incoming URL.

  • Rodion Novoselov 694 posts 859 karma points
    Jan 19, 2012 @ 12:03
    Rodion Novoselov
    0

    Oh. I'm sorry for possible confusion - of course I meant:


    umbracoHideTopLevelNodeFromPath = false

Please Sign in or register to post replies

Write your reply to:

Draft