We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32645
    • 377 Posts
    I’m really confused as to how to use thumbnails with MODX.

    I’ve got the ImgResizer plug-in installed, but I still don’t know how to get MODX to generate thumbnails on the fly and incorporate them into template variables.

    Let’s say you have a TV called "Picture" and you pick a picture, the plug-in auto-generates the thumbnail - but how do you include it inside your template variables, or on the page, or whatever.

    Can someone clear up the 100% full-proof way of including, and using thumbnails, especially with regards to template variables?

    Many thanks.
      • 11975
      • 2,542 Posts
      Hi,

      unfortunately I don’t know imgResizer. Most of the time, I’m using phpThumb phx modifier.

      here is a sample
      <img src="[*tv_image:phpThumb=`some params ...`*]" />

      hope that helps.

      :-)
        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
        • 32645
        • 377 Posts
        I’ll try that plug-in instead.

        With thanks!
          • 32645
          • 377 Posts
          Unforutently I couldn’t get that plugin/snippet to work - maybe I did it wrong. But no image ever got displayed. I even double checked the link it was generating - and there wasn’t even an image it was referencing.

          In either case I would prefer any other thumbnail generating snippet, perhaps one that works 100% of the time, or is more popular/successful?
            • 32645
            • 377 Posts
            Are there any other php thumbnail plug-ins that work with Template Variables? Its really getting quite frustrating trying/testing different snippets/plug-ins that don’t support Template Variables.
              • 11975
              • 2,542 Posts
              phpthumb modifier works great.
              You have to edit the config php file in the snippets folder and create the cache folder.

              :-)
                Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                • 32645
                • 377 Posts
                I’ve used DirectResize instead to solve this problem.

                (Closed)