Copied to clipboard

Flag this post as spam?

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


  • Niels Jorck Ellegaard 39 posts 245 karma points
    Jan 29, 2013 @ 08:06
    Niels Jorck Ellegaard
    0

    Multi language, one domain.

    So this one have been up for debate a few times already, however they either don't solve my problem or I bluntly don't understand them.

    I have a running site with a few languages each on their own domain. Now my client wants them all under the same domain, but with a postfix of the language code. Something like www.mysite.com/en/

    There is one solution that I could see working, when I searched for this. It is something like this:

    -Content
    -Global
    -en
    -da
    -nl

    Then with some madeup domains that don't matter on the language nodes, simply to set the correct language and with a clean Global to catch them all.

    However this solution breaks most of the code. AncestorsOrSelf().Last() to get the rootnode will return the wrong node. So most of the code won't work with this setup.

     

    So I am wondering if it is possible to do this with the regular setup. Multiple rootnodes that are a subpages of one domain:

    -Content
    -en
    -da
    -nl

    Anyone have a solution for this one?

Please Sign in or register to post replies

Write your reply to:

Draft