We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4172
    • 5,888 Posts
    Finally it should be possible now with MIGX 2.4.0 beta3, to render subMIGX-items or other Information using modx-chunks for grid-columns:
    https://github.com/Bruno17/MIGX/downloads

    The new chunkrenderer.

    works like that:
    Create a new Column in the MIGX - configurator for yor MIGX-TV
    fieldname for example 'submigx'.
    in tab 'Renderer' - choose: renderChunk
    create just one Renderoptions in the grid below.
    Fill out the field 'name' for example with tplColumnSubmigx

    Save it.

    Create a chunk 'tplColumnSubmigx'

    with something like that:

    [[getImageList? &value=`[[+yourSubMIGXfieldname]]` &tpl=`yourRowchunk`]]


    MIGX should now render your MIGX-call into each Row of your MIGX-grid.

    Lots of new possibilities with that feature!
    Its working on my Test-Environment for MIGX and MIGXdb.

    It should now also be possible to do stuff serverside, each time you add,duplicate,edit,move,remove a MIGX-item, with custom-processors. Each Time you do that it sends a request with all items and inserts the responded items into the grid again.
    [ed. note: Bruno17 last edited this post 11 years, 5 months ago.]
      -------------------------------

      you can buy me a beer, if you like MIGX

      http://webcmsolutions.de/migx.html

      Thanks!
      • 36704
      • 131 Posts
      Congrats Bruno!,
      This is amazing, i will try this and will keep you inform.
      Thank you very much for sharing this plugin.

      • Tried but is not working with a MIGXdb inputTV, nothing comes out in the expected grid Column, no errors in the console. ej:
        submigx tv is called 'migx_showtime', created a new column for the grid in the parent migx configuration with fieldname 'migx_showtime' and in the Render Tab:
        Render: this.renderChunk

        Item:
        Name: tplColumnSubmigx
        Value: *empty*
        Image: *empty*


        Then in Chunks i have:

        tplColumnSubmigx:
        [[getImageList? &value=`[[+times]]` &tpl=`migx_showtime_render_tpl`]]


        times being my column database name and migx_showtime_render_tpl my chunk tpl

        then, in migx_showtime_render_tpl i have something like:
        <li>[[+times]]</li><span>Hello World!</span>
        
        [ed. note: lithiumlab last edited this post 11 years, 5 months ago.]
        • Quote from: Bruno17 at Nov 08, 2012, 05:42 PM
          Finally it should be possible now with MIGX 2.4.0 beta3, to render subMIGX-items or other Information using modx-chunks for grid-columns:
          https://github.com/Bruno17/MIGX/downloads

          The new chunkrenderer.
          ...

          [[getImageList? &value=`[[+yourSubMIGXfieldname]]` &tpl=`yourRowchunk`]]


          MIGX should now render your MIGX-call into each Row of your MIGX-grid.

          Lots of new possibilities with that feature!

          Awesome stuff, Bruno! Excited to try this out cool
            Mike Reid - www.pixelchutes.com
            MODx Ambassador / Contributor
            [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
            ________________________________
            Where every pixel matters.
            • 4172
            • 5,888 Posts
            Quote from: lithiumlab at Nov 09, 2012, 09:13 PM
            Tried but is not working with a MIGXdb inputTV, nothing comes out in the expected grid Column, no errors in the console. ej:
            submigx tv is called 'migx_showtime', created a new column for the grid in the parent migx configuration with fieldname 'migx_showtime' and in the Render Tab:
            Render: this.renderChunk

            Item:
            Name: tplColumnSubmigx
            Value: *empty*
            Image: *empty*


            Then in Chunks i have:

            tplColumnSubmigx:
            [[getImageList? &value=`[[+times]]` &tpl=`migx_showtime_render_tpl`]]


            times being my column database name and migx_showtime_render_tpl my chunk tpl

            then, in migx_showtime_render_tpl i have something like:
            <li>[[+times]]</li><span>Hello World!</span>
            

            the submigx-TV: is it migx or migxdb?
              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
            • Quote from: Bruno17 at Nov 11, 2012, 07:15 AM


              the submigx-TV: is it migx or migxdb?

              it's a migxdb
                • 4172
                • 5,888 Posts
                getImageList does only work with a json-string as generated by a MIGX-TV

                to get datas from custom-tables you will need a snippet like rowboat, bloX or a custom-snippet.

                called like this in your column-chunk for example:

                [[bloX? &where=`{"resource_id":"[[+id]]"}` &packagename=`yourPackage` &classname=`yourClass` &tpls=`row:yourRowtpl`]]
                  -------------------------------

                  you can buy me a beer, if you like MIGX

                  http://webcmsolutions.de/migx.html

                  Thanks!
                • I'm using a custom prefix for my package.
                  How can i tell blox to use the correct custom prefix?

                  Seems i'm getting this error as a result


                   [2012-11-12 10:47:56] (ERROR @ /assets/components/migx/connector.php) Error 42S02 executing statement: 
                  Array
                  (
                      [0] => 42S02
                      [1] => 1146
                      [2] => Table 'instance_c0000_modx.modx_showtime' doesn't exist
                  )



                  i'm using 'plm_cms_' as my tables prefix
                  • As in this page:
                    http://rtfm.modx.com/display/xPDO20/Defining+the+Database+and+Tables
                    I even defined the 'tablePrefix' attribute in the <model> tag of my schema just in case.

                    Besides the bloX call, everything in the multiple configs i have seems to be working ok.
                    I think i can make my custom snippet for this call, but would like to know if it is possible to use bloX for this.

                    <model package="cartelera" baseClass="xPDOObject" platform="mysql" defaultEngine="MyISAM" version="1.1" tablePrefix="plm_cms_">
                    


                    UPDATE:
                    Here's my Snippet call:
                    [[bloX? &where=`{"cartelera_id":"[[+id]]"}` &packagename=`cartelera` &classname=`Showtime` &tpls=`row:migx_showtime_render_tpl`]]
                    [ed. note: lithiumlab last edited this post 11 years, 5 months ago.]
                    • Quote from: Bruno17 at Nov 12, 2012, 04:01 PM
                      getImageList does only work with a json-string as generated by a MIGX-TV

                      to get datas from custom-tables you will need a snippet like rowboat, bloX or a custom-snippet.

                      called like this in your column-chunk for example:

                      [[bloX? &where=`{"resource_id":"[[+id]]"}` &packagename=`yourPackage` &classname=`yourClass` &tpls=`row:yourRowtpl`]]


                      Can i use custom table prefix with bloX?