We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 43240
    • 10 Posts
    Quote from: ThaClown at Sep 25, 2014, 04:27 AM
    Very cool, I almost have it working now but I have this in my tpl:

    [[!getImageList? 
        &tvname=`nestedmigx`
        &tpl=`@CODE:
        <div class="[[+idx]]">[[+fieldb]]
            <ul>
                [[!getImageList? 
                    &tvname=`nestedmigx`
                    &tpl=`[[+images]]`
                ]]
            </ul>
        </div>
    `]]
    


    I renders like this:



    So all is working but how do I get every image of the nested MIGX to get rendered in a image tag one by one?
    It is now just all JSON for the item...




    I set this up the other day for creating nested items for multiple boxes on the page and having tabbable content in each one.





    theOuterOuterChunk

    
    [[getImageList? &tvname=`CONTENTBLOCKSMIGX` &tpl=`contentBoxTpl`]]
    
    

    Inside the ContentBoxTpl above

    The snippet used is

    [[getImageList? &value=`[[+tabs]]` &tpl=`tabcontentTpl`]]
    
    

    inside tabcontentTpl

    <div id="example-3-tab-[[+idx]]" class="tabs-panel3">
    [[+content]]
    
    
    
      • 4172
      • 5,888 Posts
      Quote from: nadakbar at Sep 25, 2014, 04:44 AM


      I set this up the other day for creating nested items for multiple boxes on the page and having tabbable content in each one.

      theOuterOuterChunk

      
      [[getImageList? &tvname=`CONTENTBLOCKSMIGX` &tpl=`contentBoxTpl`]]
      
      

      Inside the ContentBoxTpl above

      The snippet used is

      [[getImageList? &value=`[[+tabs]]` &tpl=`tabcontentTpl`]]
      
      

      inside tabcontentTpl

      <div id="example-3-tab-[[+idx]]" class="tabs-panel3">
      [[+content]]
      
      
      
      </div>

      this is, how I would do it, too.
      Looks good to me.

        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 29597 ☆ A M B ☆
        • 350 Posts
        Menno Pietersen Reply #13, 12 years ago
        Thanks that worked!
          MODX Ambassador (NL) | Responsive web design specialist, developer & speaker
          DESIGNfromWITHIN, MPThemes and Any Screen Size
          Follow me on Twitter | Read my blog | My code on GitHub
          • 43240
          • 10 Posts
          This may be the most rushed video in existence but i thought i would make a quick screencast for setting up the backend manager for nestable Migx grids.

          Apologies for the jumping around from CMP page to CMP page. I was doing it off the top of my head and remembering things as i went through it but the end result worked.

          So if followed carefully it should work for everyone else too.

          https://www.youtube.com/watch?v=CWpQjG03WBw&feature=youtu.be

          I didn't touch the front end aspect of getting the nestable items to display on the site in the screencast but i guess this has already been resolved above.

          have a nice day devving smiley

          Nad
            • 4172
            • 5,888 Posts
            nice done nadakbar!

            you don't need to create a TV for the second inside MIGX - TV
            you can just use inputTVtype: 'migx'
            and fill the configs-fields with the configurations-name for the second MIGX-TV

            also the image-TV is not needed, inputTVtype: 'image' should work

              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
              • 43240
              • 10 Posts
              Quote from: Bruno17 at Sep 25, 2014, 05:28 AM
              nice done nadakbar!

              you don't need to create a TV for the second inside MIGX - TV
              you can just use inputTVtype: 'migx'
              and fill the configs-fields with the configurations-name for the second MIGX-TV

              also the image-TV is not needed, inputTVtype: 'image' should work


              Excellent! i just discovered that i didn't need to create a new TV for the image after i made the vid but didn't know i did not need to make an actual second migx. That makes things a whole lot more streamlined.

              Many thanks.

              Nad

              p.s Migx is amazing, i haven't even dabbled into the other 1949394 snippets that migx comes bundled with. Have used migxDB though and that is spectacular!
                • 8548
                • 104 Posts
                Quote from: nadakbar at Sep 25, 2014, 12:12 AM
                This may be the most rushed video in existence but i thought i would make a quick screencast for setting up the backend manager for nestable Migx grids.

                Apologies for the jumping around from CMP page to CMP page. I was doing it off the top of my head and remembering things as i went through it but the end result worked.

                So if followed carefully it should work for everyone else too.

                https://www.youtube.com/watch?v=CWpQjG03WBw&feature=youtu.be

                I didn't touch the front end aspect of getting the nestable items to display on the site in the screencast but i guess this has already been resolved above.

                have a nice day devving smiley

                Nad

                great video, made me understant a fiew thing about Migx, would be great to find a new one with voice over for more detailed explanation to unveil all the MigX power.

                cheers!