We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10638
    • 57 Posts
    This is really great! laugh Thanks!
    • Yeah, this is great!

      It would be better if it used the Gallery TV with the resize/rotate/watermark/etc options - but its a solid start smiley
        MODX Ambassador for Thailand. Managing Director at Monogon, a web design and development studio based in Bangkok, Thailand. - Follow me on Twitter.
        • 14951
        • 151 Posts
        Very nice contribution! Is there any easy way to only pull in the first image (e.g. &limit=`1`). I’m not familiar with JSON at all, or the Revo structure yet, so forgive my ignorance if this is something easy I missed.

        Thanks!
        -Jared

        EDIT: So I modified the snippet to work with the limit parameter. I’m not sure if this is a good approach or not, but I commented the minor modifications though. Here it is if you’d like this feature.
        Example:
        <ul>[[!getImageList? &tvname=`myTV`&tpl=`@CODE:<li><img src="[[+imageURL]]"/><p>[[+imageAlt]]</p></li>` &limit=`5`]]</ul>
          • 8609
          • 607 Posts
          Wonderful, thank you for the contribution! smiley
          • Yes thank you, this works great and I will be using this a lot.

            I did run across an issue in the August 20th build from github – it seems that when you add/modify images or captions the save button is not reenabled (at least in my case) unless you modify another field for the resource. Anyone who is using this experience this and any ideas on how to fix this?

            Thanks!
              • 12491
              • 90 Posts
              I get this :

              <img src="[{"imageURL":"assets/images/web/03.jpg","imageAlt":"sdafdsf"},{"imageURL":"assets/images/web/16.jpg","imageAlt":"sfdf"}]" />

              What should be the output rendering option.

              thnx
              Hurby
                Sommige mensen hebben aan een half woord genoeg
              • Are you using the snippet to render the output of the TV?
                  • 12491
                  • 90 Posts
                  Yes i,am

                  gr
                  Hurby

                    Sommige mensen hebben aan een half woord genoeg
                  • What is the call in your template look like? It looks to me that its just rendering the content that is stored in the template variable that is placed in the template. I don’t think the output rendering needs to be set because the template variable simply holds the image information and the included snippet handles the rendering.
                      • 4172
                      • 5,888 Posts
                      What should be the output rendering option

                      use output-type: default
                      and use the snippet to render your images
                        -------------------------------

                        you can buy me a beer, if you like MIGX

                        http://webcmsolutions.de/migx.html

                        Thanks!