We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12684
    • 118 Posts
    I may be missing this somewhere, but is there a way to have an image that would be in a blog/article reduce in size to a thumbnail(preset dimensions) in a ditto call?

    I want the image that is called to the front index to be much smaller than it is in the actual article.
      • 7231
      • 4,205 Posts
      I think that the directResize snippet does this feature. I have not tried it yet. I think that there is another one named miniPhoto that may do this as well. This is not a feature in Ditto.

      Oh, I almost forgot, you can do this with PHx within the Ditto tpl as well. PHx has a phpThumb modifier that may help with this.
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don't know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 12684
        • 118 Posts
        Quote from: dev_cw at Jun 28, 2008, 05:00 PM


        Oh, I almost forgot, you can do this with PHx within the Ditto tpl as well. PHx has a phpThumb modifier that may help with this.

        This would be perfect. However I searched through the phx.parser.class.inc.php and I could not find anything regarding resizing an image. Any more info that could help me out?
          • 27749
          • 53 Posts
          As dev_cw wrote.
          Try to combine ditto templates with this:
          http://modxcms.com/DirectResize-1802.html
          os this:
          http://modxcms.com/phpThumb-Package-1522.html
            • 12684
            • 118 Posts
            ok DirectRezie will not do this. I worked with Metaller on this and he was extremely helpful, but Directresize will not cut it.

            I have looked through phpThumb but this has the basic same restrictions. I could not see a way to do this using the phpthumb modifier. Maybe some one knows something I missed though.

            I will look into miniPhoto next.