We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8548
    • 104 Posts
    Hello to you,

    I'm trying to make this easy for client's to update they're content, so I ticked the «Hide default language from Translations - grid,» so client's don't have to go in both language to update the fields, they enter the content in the default fieds for default language, and in migxMultiLang TV for the other language.

    The «Hide default language from Translations - grid,» works good, the default language is hidden from translation, but It does not use the default TVs for default language.

    did I miss something some where?

    thanks you for the help.

    Francis

    This question has been answered by multiple community members. See the first response.

      • 4172
      • 5,888 Posts
      do you have

      [[+mml.pagetitle]]
      or
      [[+pagetitle]]


      in your Template-chunk?

      Or can you show a part of your template-chunk (not the whole thing), which does not work.
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 8548
        • 104 Posts
        Hi Bruno,

        here's a part that is not working:
        	<title>[[+casino_longtitle]] - [[++site_name]]</title>
        	<meta name="description" content="[[+casino_description]]">


        I've replaced mml_longtitle by casino_longtitle (cause I have multiple site under the same modx, and not all have same language or more than one.
          • 4172
          • 5,888 Posts
          why can't you use the normal fields, like
          [[+longtitle]]


          I think, multiple contexts/different languages shouldn't matter.

          is
          [[+casino_longtitle]]
          a template-variable, then?

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

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 8548
            • 104 Posts
            Quote from: Bruno17 at Jul 02, 2015, 01:15 PM


            is
            [[+casino_longtitle]]
            a template-variable, then?


            I will trye with
            [[+longtitle]]


            and
            [[+casino_longtitle]]
            is a template-variable created with MigxMultiLang
              • 8548
              • 104 Posts
              Update tested with
              [[+longtitle]]

              when I use it and not
              [[+casino_longtitle]]
              I only get the default language/TVs input and the translation is not working anymore sad
              • discuss.answer
                • 8548
                • 104 Posts
                Bruno,

                I've found a workarround that's working.
                I use filters like this
                [[+casino_longtitle:default=`[[+longtitle]]`]]


                I think this will do for now, by the way, I really like you addon, was missing to Revo. Easy and friendly way for multiLang site.
                • discuss.answer
                  • 4172
                  • 5,888 Posts
                  now I see, what you are doing.
                  ok, only fields with mml_ are translating the default resource-fields.

                  This is done here:

                  https://github.com/Bruno17/migxmultilang/blob/master/core/components/migxmultilang/elements/snippets/mmltranslatepdotoolsrow.snippet.php#L27

                  you can also have your own translatepdotoolsrow - snippet

                  should be faster, than output-filters.
                    -------------------------------

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!
                    • 8548
                    • 104 Posts
                    Ha! now I understand too, we can't modify the mml_ for tv's.

                    thank you very much for the answer Bruno, like always your input is great.