We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36830
    • 140 Posts
    My client produces a few bi-annual lists of people of interest for their magazine that I would like to replicate on their website in a simple, user-friendly way. Ideally, I'd like to use a MigX tv to create a table in a static resource with columns where the client can select a sorting designation for each person (e.g. industry, region, etc) and add an image and a brief bio (i feel this approach would be much better and cleaner than having to create hundreds of resources across several folders). Then, on the front-end, I would like the tv to output multiple select box drop-downs, where the user could filter the list of people by industry, region, etc. similar to jcombo http://www.prodiven.com/jcombo/?lang=en (e.g. Region:Albany>Industry:Education would populate the third select-box with the people who fit those criteria). What would be the best way to proceed in this endeavor? Once the lists are populated, how do I have them output the filtered information (image, bio) onto the page? Still a little shaky w ModX and don't know JSON yet so a little hand-holding may be necessary. Thanks so much in advance for any insights.
      • 4172
      • 5,888 Posts
      I would put them into a custom-table and use a MIGXdb - TV to manage them.

      On the frontend you can use this jcombo. Its looking good to me.
      They can be filled with items by ajax-request to a MODX - Resource with a migxLoopCollection - snippet - call to fetch the listbox-items from your custom-table.

      To get the filtered data, you can use the onChange - Event and fire another ajax-request to another Resource, with a migxLoopCollection - snippet - call, which does return the filtered data.
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 36830
        • 140 Posts
        Thanks. The custom table would be created in the MIGX TV Input options?
          • 4172
          • 5,888 Posts
          the setup would be some like this tutorial:

          http://rtfm.modx.com/extras/revo/migxdb/migxdb.tutorials/migxdb.create-a-basic-gallery-management-from-scratch-with-migxdb

          only with some other fields in the xpdo-schema and your own package-name and package-directory
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!