We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 50923
    • 137 Posts
    I am trying to make some inline tpl for getimagelist is it possible to do somthing like this??

    [[!getImageList?
        &tvname=`HomeCarousel`
    	&docid=`[[+id]]`
        &tpl=`@CODE: [[+image:pthumb=`w=1920&h=800&zc=1`]]`]]

    This question has been answered by Bruno17. See the first response.

      <a href="www.play2web.com" title="izrada web sajtova">Izrada web sajtova</a>
      • 4172
      • 5,888 Posts
      this doesn't work this way.
      You need to use a chunk, as soon as you need outputfilters like that.
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 50923
        • 137 Posts
        I am making some Angular MODx controller, and i will have a lot of images to phpthumb sad
        But only W and H will change, it means I will have a lot of similar chunks sad
          <a href="www.play2web.com" title="izrada web sajtova">Izrada web sajtova</a>
        • discuss.answer
          • 4172
          • 5,888 Posts
          you can do it this way:

          [[!getImageList?
              &tvname=`HomeCarousel`
              &docid=`[[+id]]`
              &tpl=`CarouselImage`
              &w=`1920`
              &h=`800`
              &zc=`1`
          ]]


          your chunk:

          [[+image:pthumb=`w=[[+property.w]]&h=[[+property.h]]&zc=[[+property.zc]]`]]
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 50923
            • 137 Posts
            Thanks this is great smiley
              <a href="www.play2web.com" title="izrada web sajtova">Izrada web sajtova</a>