We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    Weird. Let's hope it works for the workshop! And thank you very much!

    Next question. How can I template each block?
      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
      • 4172
      • 5,888 Posts
      with
      &tpl=`@FIELD:name`


      MIGX should use the chunk with the name in the name-field for each block
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 4172
        • 5,888 Posts
        Have now also changed the inputType of the name-field to listbox with inputOptionValues:
        @EVAL return $modx->runSnippet('migxChunklistToJson',array('category'=>'5','format'=>'optionlist'));


        and extended the migxChunklistToJson - snippet a bit
          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          What is that [[+extra]] placeholder in the chunk for?
            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
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Well, thank you very much; I have to get ready and go catch a bus.
              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
              • 4172
              • 5,888 Posts
              the placeholder is just an example.
              Could be as many as you need as allways in MIGX.
              could be used as properties for snippet-calls inside the chunks for example.
              For additional informations which differ from page to page.
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                Ok. Finally made it into TA, 4.5 hours on a bus, then I have to get to the airport at 3 AM for a flight at 6. Not sure if I'll use this in the workshop or not; will have to see how it's doing timewise at that point. Thank you.
                  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
                  • 10208 ☆ A M B ☆
                  • 1,780 Posts
                  Susan,

                  Best of luck and safety with the wee hours travel. Many thanks to you and everyone else, for all that you do.

                  Kori
                    Frogabog- MODX Websites in Portland Oregon
                    "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
                    Having server issues? These guys have MODX Hosting perfected - SkyToaster
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    Ok, back to trying to get a checkbox list of chunks in a given category. Doesn't seem to be working with Revo 2.2.7 and MIGx 2.3.2

                    Any updates on this procedure?

                    Updated to MIGx 2.4.2beta3 and it's working great! [ed. note: sottwell last edited this post 13 years, 7 months ago.]
                      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
                      • 41185 ☆ A M B ☆
                      • 23 Posts
                      MODX Revolution 2.2.7-pl (traditional)

                      I am getting this error:

                      Parse error: syntax error, unexpected '[' in /home/xxxx/public_html/xxxx/core/components/checkboxsortable/elements/tv/input/checkboxsortable.class.php on line 63

                      $storeData = [];
                        Developing Themes/Templates for MODx Revo. Visit http://mdxthemes.com