We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 43303
    • 31 Posts
    I have a question about this add-on:

    - I have two languages English and Spanish. I just want to use the normal content field or the English language. And for the Spanish translation i want to use the translation TV (template variabel). Does anybody know how to do this? I tried some things, but now i have a blank page, while i have the normal content field filled in.

    [ed. note: yellow89 last edited this post 9 years, 4 months ago.]
      • 44195
      • 293 Posts
      Hi,

      If you want to use the normal content field for the default language just use [[+content]] in your chunk. ( instead of [[+mml_content]] )
        I'm lead developer at Digital Penguin Creative Studio in Hong Kong. https://www.digitalpenguin.hk
        Check out the MODX tutorial series on my blog at https://www.hkwebdeveloper.com
        • 43303
        • 31 Posts
        I have an other problem with migx add-on.

        My site werks perfect in browser on pc. When i open it on mobile or ipad the following problem occurs:

        - the content from the TV's (template variables) and images don't load

        but this only occurs when i open my site without the "/en/" behind it (from the language add-on). When i use an url like: www.site.com/en/ it works perfect.
          • 4172
          • 5,888 Posts
          did you try to prefix the pathes to your images with [[++original_site_url]]
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 43303
            • 31 Posts
            yes in the template file i have put it before the css link and images

            But the strange thing is that it works when i go to www.siteurl.com/en/ but it doesn't when i use just www.siteurl.com, only on mobile/ipad as i said, it works perfect in my browser.
              • 4172
              • 5,888 Posts
              this really does sound strange.

              when you output the image-urls on screen,

              not with
              <img src="[[++original_culture_key]][[+image]]">
              but just:
              [[++original_culture_key]][[+image]]


              so you can see the generated url at your mobile, are they correct?

                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!
                • 43303
                • 31 Posts
                i used:

                [[++original_site_url]]img/photo_leaves.jpg


                on browser and on mobile version with "/en/" behind the url, it works good and i get:

                http://siteurl.com/subfolder/img/photo_leaves.jpg 


                On the mobile version without "/en/" behind the url i get:

                img/photo_leaves.jpg 


                it loads the css though, it seems it just doesn't loads the mml template variables.

                ----------

                i also tried using "site_url" instead of "original_site_url", then i get this on the browser/pc version:

                http://siteurl.com/subfolder/en/img/photo_leaves.jpg 


                the strange thing is, i get the same url, but without "/en/" on the mobile version (while using the url without /en/):

                http://siteurl.com/subfolder/img/photo_leaves.jpg 
                  • 52029
                  • 2 Posts
                  Hello!

                  I'm totaly new at MODX an looks good so far, but I just can't get this multilingual thing working. I tried several times on all the tutorials that I could find but I can't finnish it because I don't have FQN of pdoFetch in my settings I tried everithing but always faild here. Is there something different in MODX Revolution 2.4.3-pl for this or am I missing something? Or is there any update on this?

                  Thank you very much

                  R
                    • 44195
                    • 293 Posts
                    Hi roychgod,

                    Did you select pdotools from the dropdown menu in system settings?
                    https://rtfm.modx.com/revolution/2.x/case-studies-and-tutorials/create-a-multilingual-website-with-migxmultilang

                    There are other ways of setting up multi-lingual websites in MODX if you're having trouble with migxmultiling.

                    If you're happy using multiple contexts, my current favourite is:
                    https://modx.today/posts/2015/05/using-xrouting-for-multilingual-websites-in-modx

                    Or you could use Lingua which keeps everything on one context (similar to migxmultilang)
                    https://rtfm.modx.com/extras/revo/lingua

                    Cheers,
                    Murray


                      I'm lead developer at Digital Penguin Creative Studio in Hong Kong. https://www.digitalpenguin.hk
                      Check out the MODX tutorial series on my blog at https://www.hkwebdeveloper.com
                      • 52029
                      • 2 Posts
                      Quote from: muzzstick at Mar 27, 2016, 02:12 AM
                      Hi roychgod,

                      Did you select pdotools from the dropdown menu in system settings?
                      https://rtfm.modx.com/revolution/2.x/case-studies-and-tutorials/create-a-multilingual-website-with-migxmultilang

                      There are other ways of setting up multi-lingual websites in MODX if you're having trouble with migxmultiling.

                      If you're happy using multiple contexts, my current favourite is:
                      https://modx.today/posts/2015/05/using-xrouting-for-multilingual-websites-in-modx

                      Or you could use Lingua which keeps everything on one context (similar to migxmultilang)
                      https://rtfm.modx.com/extras/revo/lingua

                      Cheers,
                      Murray



                      Thank you for answer wink
                      Yes I selected the pdoTools from drop down, but I don't have the FQN of pdoFetch settings there, I see many others for pdotools.
                      What would be the best way to create multilingual site.

                      R