We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 49481
    • 32 Posts
    Hi,

    How can I use a migx tv within migxmultilang?

    I've got migxmultilang running, and can add basic TVs to it, but if I try and add one like at:
    http://rtfm.modx.com/extras/revo/migx/migx.backend-usage
    i.e. title, description and image
    it won't work.

    The TV itself is fine because if I assign it directly to the template it shows up in the resource TV tab.
    But in the migxmultilang window when doing data entry it only allows the title to be entered for new items.
    It doesn't show anywhere to enter the description or image.

    ta

    This question has been answered by Bruno17. See the first response.

      • 4172
      • 5,888 Posts
      with MIGX-TVs I add fields for each language like

      title_de, title_en, description_de, description_en

      In your template you can call them then with:
      [[+title_[[++cultureKey]]]]

      or
      [[+description_[[++cultureKey]]]]
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 49481
        • 32 Posts
        Thanks Bruno,

        I got the text working. I seem to be having trouble with the image itself though. It's fine when there's not /en/ or /de/ in the URL but when there is, it breaks the path to the image. (imagine my image resides in the base assets dir)

        e.g. http://site-url.com/assets/image.png works fine but when changing language the URL ends up as http://site-url.com/en/assets/image.png and is broken.
          • 49481
          • 32 Posts
          I just found that if I manually type in [[++assets_url]]/image.png into the migx tv then it doesn't break. But obviously the image preview doesn't show up and having clients type in modx tags seems a bit cumbersome.
          But if using the image chooser it just sets it to assets/image.png and it does break.
          • discuss.answer
            • 4172
            • 5,888 Posts
            put in your tpl-chunk

            /[[+image]]


            or

            [[++original_site_url]][[+image]]


            it might also be possible to have some rewrite-rules for images in your .htaccess - file.
              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
              • 49481
              • 32 Posts
              Perfect! Thanks muchly, Bruno.

              (I wanted to avoid any rewrites if I could)
                • 49481
                • 32 Posts
                Hi Bruno,

                What about getting FormIt working with migxmultilang?

                I have spent the last hour or so trying to work out why I can't get FormIt to work... I then bypassed the migxmultilang BaseTemplate and used a different template and it worked straight away.

                Could it be to do with placeholder conflicts or something?
                Is there anything special that needs to be done?
                  • 4172
                  • 5,888 Posts
                  pdoTools does parse cached and uncached tags and the parsed output is cached for each language by getCache (mmlCache in this case)

                  So, if you need something, which shouldn't be processed and cached inside mmlCache, try this special tags on all involved elements:

                  [![!FormIt? &xxxxx]] 


                  or for example with used chunks:

                  [![$myFormitForm_[[++cultureKey]]]]


                  you can also try to call mmlCache, not to cache the result with
                  &cache=`0`
                    -------------------------------

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!
                    • 49481
                    • 32 Posts
                    Perfect! Thanks again, Bruno.