We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42049 ☆ A M B ☆
    • 250 Posts
    After the success of the MIGX TV video tutorial, I have been requested and PM'd by many to make one for MIGX DB. Well here it is!

    This tutorial covers :

    • Creating a base empty migx package
    • Our package structure
    • Our schema
    • What is schema?
    • Making our XPDO classes
    • Creating our database table
    • Making our migx configuration
    • Adding a custom action (Linking up our CMP to the top navigation menu)
    • Making our migxdb page (columns, forms, renders, actions inputTvTypes and default values)
    • Rendering to the front end (using migxLoopCollection)
    • XPDO! newObject, getObject and getCollection

    I hope you find this tutorial useful, its 22 minutes long and broken down into 4 easy to manage sections.

    Please leave comments and like/share if you found it useful! Enjoy!

    https://www.youtube.com/watch?v=Dv83iC9iELI
      GEL STUDIOS
      MODX Professional | MODX Ambassador

      Website | Email | Twitter | Facebook
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Excellent!

      One question, though, isn't there a better way of modifying multiple objects than looping through each one like that, getObjectGraph or something? I've seen the question raised before, how to use xPDO to do multiple inserts or updates...
      INSERT INTO tbl_name (a,b,c) VALUES(1,2,3),(4,5,6),(7,8,9);

      INSERT INTO table (a,b,c) VALUES (1,2,3),(4,5,6),(7,8,9)
        ON DUPLICATE KEY UPDATE c=0;
        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
        • 42049 ☆ A M B ☆
        • 250 Posts
        Yes there is, however I felt that the scope of the tutorial would be for people dipping there feet into XPDO - I felt newObject, getObject and getCollection would be a good three to get people started smiley
          GEL STUDIOS
          MODX Professional | MODX Ambassador

          Website | Email | Twitter | Facebook
          • 22840
          • 1,572 Posts
          Great tutorial. I've never dipped my toes into MIGX DB as I haven't had the need to, however, this would be great for adding a home page slideshow to the menu, testimonials and so many other things so that it's easier for the client to use.

          Do you plan on adding this to the RTFM so the code can be copied and pasted. would be great if you could find the time.

          Thanks for the video
            • 42049 ☆ A M B ☆
            • 250 Posts
            I've just emailed [email protected] requesting an account on the RTFM smiley

            Glad people are liking it so far.
              GEL STUDIOS
              MODX Professional | MODX Ambassador

              Website | Email | Twitter | Facebook
              • 22840
              • 1,572 Posts
              Love it Graeme, top job and looking forward to more wink