Copied to clipboard

Flag this post as spam?

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


  • quachnguyen 12 posts 32 karma points
    Nov 13, 2014 @ 04:49
    quachnguyen
    0

    Where is the latest of Language Selector of Umbraco 7.x

    Dear all,

    Currently I'm working on multilinguale website, however all the package and lib are old which I have develop in last couple of years. Please all master help/suggest me to select the latest version of Selector language.

    I'm appreciate for that help.

    Thanks all!

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Nov 13, 2014 @ 07:39
    Jan Skovgaard
    0

    Hi there

    What language selector do you have in mind? Is it a 3rd party package you're thinking about? Or is it where to change the backoffice language in Umbraco?

    /Jan

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Nov 13, 2014 @ 08:48
    Dennis Aaen
    0

    Hi

    You could build a langauge switcher, in Razor with this code for your frontend of your site. in my example I am using the typed version of Razor.

    @{
        var homePages = Umbraco.TypedContentAtRoot().Where(x => x.DocumentTypeAlias == "umbHomePage" );
     
            <ul>
                @foreach(var page in homePages){
                    <li>
                        <a href="@page.Url">
                            @page.Name
                        </a>
                    </li>
                }
            </ul>
    }

    This will make a list of all your nodes using the document type "umbHomePage" and pull out the name of the node and a link to it. Remember to change the "umbHomePage" so it mach the alias of your document type for your hompage.

    Hope this helps,

    /Dennis

  • quachnguyen 12 posts 32 karma points
    Nov 14, 2014 @ 04:04
    quachnguyen
    0

    Thanks for all your help,

    I worked with this library in last 2 years

    http://our.umbraco.org/projects/website-utilities/multi-language-tools

    as bellow suggestion of this article

    http://webmove.be/home/blog/blog/2011/august/multilanguage-websites-with-umbraco-part4

    Now with the latest version of Umbraco we are using MVC and Razor syntax, I guess that there are some ways to implement language switcher which would apply for latest version of Umbraco.

    If have i would have more suggestion

    Thanks 

Please Sign in or register to post replies

Write your reply to:

Draft