We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7231
    • 4,205 Posts
    I am working on a multi-language site witch has a few sections that will share the same content. I want to avoid having to enter the same data twice as well as providing a centralized place to update the ’page’ info.

    1) Is there a way to post the same page in two languages?
    2) is there a way to have a template for each language on the same page/document?

    I could use the getfield snippet but this needs to be easy to administrate as well as duplicate. I don’t want to leave too much thinking for the client to deal with.

    I was able to work out some duplicate content issues by using ditto and custom tpl for each language. This worked fine with simple content but will not work with this more complex page structure.
      [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

      Something is happening here, but you don't know what it is.
      Do you, Mr. Jones? - [bob dylan]
      • 20289
      • 958 Posts
      Maybe this could help http://wiki.modxcms.com/index.php/Make_Multi_Lingual_Site dont miss recources links too.
        [img]http://i10.tinypic.com/52c4eir.gif[/img][/td]
        [td][Wiki] [Persian support forum]
        [SVN] [RTL SVN Branch] [bugs] [FishEye+Crucible] [Learn MODx!] | [My Google Code]
        [font=tahoma][برای دسترسی به راهنمای فارسی به [url=http://www.modxcms.ir]
        • 7885
        • 40 Posts
        you could create a [*TVadditionalLang*] in the doc for the other language and with javascript show the doc’s [+content+] the [*TVadditionalLang*] in the content div of your site

          visit us at www.dospuntocero.cl
          • 7455
          • 2,204 Posts
          Quote from: dospuntocero at Sep 23, 2007, 02:04 AM

          you could create a [*TVadditionalLang*] in the doc for the other language and with javascript show the doc’s [+content+] the [*TVadditionalLang*] in the content div of your site



          the only problem is the naming of the menu’s those need to be in the right language aswel
            follow me on twitter: @dimmy01
            • 7231
            • 4,205 Posts
            the only problem is the naming of the menu’s those need to be in the right language aswel
            Exactly. Also a javascript solution will not work without JS, in tat case only one language will be available.

            Most solutions that I have seen don’t resolve the duplicate page issue which is fine for most content.

            In my case it is for a university site with professor profiles. All the info is the same in both languages except the bio, and the page template. The solution would be to have a dynamic template selection based on a variable that would select the template based on the location. Since the page that calls the bio pages is based on a ditto call I can edit the tpl and add the appropriate language variable to the link url (...[~id~]?templateLanguage=de). Then on the bio page include a snippet that will read the templateLanguage variable and load the appropriate chunk. Humm, this might just work. I will need to build a static navigation to replicate the location of the document.

            Wait a minute, will this work with SURL? I only need to resolve this in the next few week so I will just keep thinking about it for now.
              [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

              Something is happening here, but you don't know what it is.
              Do you, Mr. Jones? - [bob dylan]
              • 7455
              • 2,204 Posts
              I am working on one that uses tv’s and a language cookie, so far this looks promising,
              when I finish this project I will share how I did this.
                follow me on twitter: @dimmy01
                • 7231
                • 4,205 Posts
                Sounds great, I look forward to knowing about your solution. grin
                  [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                  Something is happening here, but you don't know what it is.
                  Do you, Mr. Jones? - [bob dylan]
                  • 53204
                  • 1 Posts
                  Many people love the mysterious stories about witches. You are going to read one of them. The interesting thing is that essay on the crucible, based on a true story. If you like this essay, you may order any written work to our company to order.http://livecustomwriting.com/blog/to-be-a-witch-the-crucible-essay We guarantee high quality and to get everything ready. It doesn't matter what topic you have, we can cope with any task. Our team is the best and our services are the cheapest. We will be happy to see You among our happy customers.