Copied to clipboard

Flag this post as spam?

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


  • Ali Z 31 posts 173 karma points
    Sep 05, 2017 @ 07:40
    Ali Z
    0

    Language as first parameter in URL

    Hello guys,

    Is there a way to create a multilingual website without duplicate the document type tree in the content tab ?

    I have 2 issues with this architecture, the redondancy and the complexity of the language switcher.

    I would like to add the language code as the first parameter in the url and use Vorto to access the traductions of my components.

    I'm learning about the request pipeline: https://our.umbraco.org/documentation/Reference/Routing/Request-Pipeline/

    Is there any practical example that i could follow to solve my problem ?

    Thank you by advance, Ali

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Sep 05, 2017 @ 09:42
    Alex Skrypnyk
    0

    Hi Ali

    Vorto is exactly what you need for the multilingual website without duplicate the document tree in the content tab.

    Can you provide an example of urls with language code?

    Thanks

    Alex

  • Ali Z 31 posts 173 karma points
    Sep 05, 2017 @ 09:49
    Ali Z
    0

    Hello Alex,

    The culture I use: nl-be, fr-be

    Example of tree with urls

    Home: /nl-be, /fr-be
        Page1: /nl-be/page1, /fr-be/page1
        Page2: /nl-be/page2, /fr-be/page2
        Contact: /nl-be/contact, /fr-be/contact
    

    Kr, Ali

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Sep 05, 2017 @ 10:11
    Alex Skrypnyk
    100

    Ali, you can just assign urls to /nl-be and /fr-be to root node with needed cultures, and this is enough, you don't need to do custom code for it, Umbraco will handle it for you.

    Thanks,

    Alex

  • Ali Z 31 posts 173 karma points
    Sep 05, 2017 @ 15:14
    Ali Z
    0

    Thank you very much Alex !

    I've done some tests, it works very well.

    Just for information, i've read this post: https://our.umbraco.org/forum/using-umbraco-and-getting-started/78576-vorto-or-not

    I think that i'll implement the duplicate solution after all, just to be sure that the architecutre will be stable for future evolutions of the app

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Sep 06, 2017 @ 18:48
    Alex Skrypnyk
    0

    Hi Ali,

    Please, share with community what decision did you make and what advantages it has :)

    Alex

Please Sign in or register to post replies

Write your reply to:

Draft