We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12584
    • 208 Posts
    I am using Ditto and this calls a template that has a image TV

    When selecting the widget dropdown to set this as an image you then get the extra options. I am selecting this to align left but for some reason there is no align left value in the output which I have worked around by adding a div with a float:left style around the image.

    However what I really want to know is there a way to select the image size like make the image only 150px width for example, I have scanned though stacks of pages but cant find anything on this

    Cheers
      • 25969
      • 118 Posts
      Your best option would be to use the class field and style the class directly with "float: left; width: 150px" in your stylesheet, or whatever.
        • 7231
        • 4,205 Posts
        However what I really want to know is there a way to select the image size like make the image only 150px width for example, I have scanned though stacks of pages but cant find anything on this
        You can use css to limit the size, if you want to cut the image off use overflow:hidden to hide anything that is over the width.

        Also I think that there may be a few snippets/plugins that handle image resize. I am pretty sure you could also use PHx but I would have to look into it. TMCE has a image resize feature as well so if you are using the editor you could resize the images.
          [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]
          • 12584
          • 208 Posts
          Kept it simple added a class and set the size in css works perfect.

          Not to sure what phx does not used it yet still on my learning curve so guess I will get to that in time.

          Thanks all for the info

          Regards

          Ian
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            phx is sort of like a mini-scripting language that lets you put programming logic into parameters.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org