We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    There's a link on my page to download the snippet. It's just a zipped text file. Unzip it, paste the code from it into a new MODX snippet and put a tag for that snippet in a new resource. View that resource, and the snippet will run.

    The code is also shown on the page at my site, so you could also cut and paste it into a snippet.

    You could also run the code from the command line or inside a good code editor.

    I thought I released it as a package, but I couldn't find it in the repository.

    I've attached it to this message, but I'm not sure if that works now.
      Did I help you? Buy me a beer
      Get my Book: MODX:The Official Guide
      MODX info for everyone: http://bobsguides.com/modx.html
      My MODX Extras
      Bob's Guides is now hosted at A2 MODX Hosting
      • 4172
      • 5,888 Posts
      Incidentally, the MIGX method does appear to work well but so far I haven't been able to get my package that it created to return anything other than an empty array.

      how does your generated schema look like and how do you try to get your records? some code!
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 40735
        • 119 Posts
        @bob I see it now. I was reading and re-reading the Overview section trying to figure it out and somehow missed the Creating the Files section all together! I'll give this a try. Thanks!

        @bruno
        I posted the code in a separate thread: https://forums.modx.com/thread/82142/empty-xpdo-objects#dis-post-453373
        Thanks!