We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3188
    • 75 Posts
    try using .gif instead of .png images, or change the file ending in the snippet.
      • 13352
      • 26 Posts
      Hi beryl,

      many thanks for your reply. It has the same results ... sad
      Btw, what is wrong with my way to calling the TV like this ? => [*language*]
      And where can I get tutorial to create a menu to frontend (like menu manager in Joomla) ? With wayfinder ?

      Thanks.
      Best Regards,
      - Jack -
        • 15001
        • 697 Posts
        Hi,

        I’m trying to implement a multilingual solution that would avoid manual edition of a template variable when duplicating the tree of the original language for translation.

        In other words, when duplicating a whole tree to translate it, my solution would avoid step 4 of the conclusion here : http://wiki.modxcms.com/index.php/How_to_make_Multi_Lingual_Site

        It would also permit different document titles and aliases for the miscellaneous languages.

        The basic idea is to use a TV (template variable) storing a document id that is shared by all translations of a document.
        Just before duplicating the original language documents, a PHP script would be run to set the TV value for all documents to the same value as the document id.
        (For the detailed idea, see http://modxcms.com/forums/index.php/topic,31908.msg193862.html#msg193862 )

        I’ve been trying to write the PHP script that sets the TV automatically, but for some reason it is not creating the necessary records in table dbprefix_site_templvar_contentvalues . The script is here : http://modxcms.com/forums/index.php/topic,31908.msg194010.html#msg194010
        Warning : For security, backup your database before running my script.

        My solution would be multilingual (not just bilingual as the discussion thread tells).

        Can someone help finding what’s wrong with the script ? Thanks.
          • 29774
          • 386 Posts
          @Jul

          you could try to echo() out the sql and then run it in phpMyAdmin - this will give you some good feedback on the result of your query.
            Snippets: GoogleMap | FileDetails | Related Plugin: SSL
            • 10076
            • 1,024 Posts
            @jackprobe

            just to make sure, did you fill out eg
            it=134, en=42
            in your tv box on the page you want in multiple languages?

            Where the numbers off course refer to the translated version of the page. So the above would be from a tri lingual page and 134 is the italian translation of the current page an 42 the one of the english version. Flags will only appear if you fill this out.

            There is no "Joomla like" menu manager in Modx. But Wayfinder is what you might want to use. Inside the Wayfinder folder you can find examples (../assets/snippets/wayfinder/examples). There are three folders, which all contain menu types and the cssplay folder contains menus from Stu Nicholls website www.cssplay.co.uk/ where you can see those menus.
            And one level up (../assets/snippets/wayfinder/) there is a "wayfinder documentation.html" file, with short descriptions of the wayfinder snippet.
            Hope this helps.
              • 36832
              • 22 Posts

              Hi,

              I have successfully integrated MultiLanguage snippet, thanks for all that contributed.
              One question:
              How to display both arrays instead of only one, and have displayed both languages
              like English | French ?

              Thanks
              Alex
                • 42159
                • 1 Posts
                I'm having a little problem. I have 3 languages I want to use but based on a country specifically. I want English, French and French Canadian if you are in Canada. I have no idea how to distinguish French and French Canadian. Any idea?
                Thanks for your help.