We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37047 ☆ A M B ☆
    • 309 Posts
    Yes I long ago learned (no doubt the hard way) to make copies and work with a versioning workflow so that I can always roll back. My confusion stems from not understanding what happens once there are two configurations in the MML Form Manager. I take it there is a step 4. Where I need to assign the new configuration to the TV...? [ed. note: lucy last edited this post 11 years, 6 months ago.]
      Lucy Iannotti
      Following Sea design & development
      http://www.following-sea.com
      New Bedford, MA
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      When you create the TV, just put whatever configuration you want to use in its Configuration field.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 32507
        • 142 Posts
        Quote from: Bruno17 at Apr 24, 2014, 11:24 PM
        I think the easiest way is to create a MODX - lexicon-entry for contact in each language
        and use lexicon - tags (uncached!):

        [[!%contact]]

        Don't you need topic & namespace properties?

        [[%key? &topic=`topicname` &namespace=`namespace_name` &language=`en`]]
          • 4172
          • 5,888 Posts
          only, if the namespace/topic wasn't loaded before, by snippet, plugin or other lexicon-tag.

          the language-property isn't needed, if you want the lexicon-entry of the current language.
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 38323
            • 26 Posts
            Hi, I'm having troubles displaying translated MML tv's.

            I'm calling pdoResources from a snippet (wich creates a PDF file)

            	$contents .= $modx->runSnippet('pdoResources',array(
            	  'parents'    => '-1',
            	  'tpl'        => 'productpage',
            	  'resources'  => $value,
            	  'limit'  => '0',
            	  'hideContainers'  => '1',
            	  'includeContent'  => '1',
            	  'includeTVs'      => 'mml_pagetitle,mml_introtext,product_image,price,consumerprice,promoprice,Termsofdelivery,PaymentTerms,opmerkingen_last,mml_productcontents,mml_technicalinformation,mml_productdescription',
            	  'debug'      		=> '0',
            	  'sortby'      	=> 'FIELD(modResource.id, '.$value.' )',
            	  'sortdir'     	=> 'ASC',
            	  'prepareTVs'     	=> '1',
            	  'loadModels'      => 'migxmultilang',
            	  'prepareSnippet'  => 'mmlTranslatePdoToolsRow'
            	));


            The pdoResources tpl (productpage):
             [[!getImageList?
            		  &limit=`1`
            		  &docid=`[[+id]]`
            		  &tvname=`product-specs`
            		  &tpl=`SpecsTableRows.getImageList`
            		  ]]


            This getImageList tpl (SpecsTableRows.getImageList) contains the MML tv's:
            [[+mml_productdescription]]


            I think i need to wrap the runSnippet in [[!mmlCache]] somehow, but i'm completely lost here...
              • 4172
              • 5,888 Posts
              do you have the MIGX - TV (product-specs) translated?

              You could have a tab for each language inside your MIGX-TV
              Then you don't have to create all items again for each language.

              Having MIGX - fields like field1_de, field2_de and field1_en, field2_en

              you can have placeholders like
              [[+field1_[[++cultureKey]]]] 
              in the getImageList - tpl-chunk

              This is how I translate MIGX-items normally.


              Otherwise, you would need to put the translated value of the MIGX-TV to getImageList with something like:

              [[!getImageList?
                       &limit=`1`
                       &docid=`[[+id]]`
                       &tvname=`product-specs`
                       &value=`[[+tv.product-specs]]`
                       &tpl=`SpecsTableRows.getImageList`
                       ]]


              this call is untested, it can be wrong

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

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!
                • 34459
                • 134 Posts
                Hi, I have a big problem with my url's and no idea why. (The language switcher is invisible near the logo, bottom right corner of the screen)
                http://directpl.com/en/
                http://directpl.com/se/

                First home page (url above) works properly. I've tried to move on to the about page but language switch doesn't work- it simply redirects to a page without en or se.
                I've use all the tutorial settings. (only home and about are migxmultilang ready wink
                Please advise.
                  Check out blackflow.pl
                  • 37047 ☆ A M B ☆
                  • 309 Posts
                  Quote from: blackflow at May 26, 2015, 05:10 AM

                  First home page (url above) works properly. I've tried to move on to the about page but language switch doesn't work- it simply redirects to a page without en or se. ...

                  I'll just ask three questions that Bruno asked a few clicks back in this thread:

                  what is the generated link?
                  what is the cultureKey of this context?
                  what is the base_url of this context?

                  Also might help to see what your snippet calls are.
                    Lucy Iannotti
                    Following Sea design & development
                    http://www.following-sea.com
                    New Bedford, MA
                    • 34459
                    • 134 Posts
                    uhhh, my mistake. Setting up friendly urls, I left on strict url sad

                    After adding
                    	<base href="[![!++site_url]]">



                    [ed. note: blackflow last edited this post 11 years, 4 months ago.]
                      Check out blackflow.pl
                      • 50429
                      • 14 Posts
                      Hey,

                      I tried looking through this feed for these issues but couldn't find them so here they are:

                      1. Is there a way to add a customized TV that changes the uri text based on the alias field for each language?

                      2. If you already have a preexisting TV and you want to add a translation for that TV, how would you go about overriding that TV? The first step would be to create a TV within the Form Manager but how would that override the original TV?

                      Thanks in advance!