We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16194
    • 103 Posts
    Hi Modx-ers!

    Ditto is cool, but how could I add a thumb to each list item. I use ditto for a list of news articles and it would be nice to have a small preview image to the image(s) used in the article. Any help is appreciated smiley

    Konsum
      Impossible is nothing - with ModX
      • 11975
      • 2,542 Posts
      Hi,

      you can achieve it using TV but you’ll have to select one of the image used in the article or create the thumb by hand (or use one of the snippet around as phpthumb)


      So how to:
      1/ create a new TV type =>image name it thumbIMG for instance
      3/select the image widget
      2/Attach this TV to the template used by the articles
      Now you will have a new field in your editing screen for the doc using this template

      Then in your ditto chunk (I assume you are running the 2.0 if not this part varies)

      add [+thumbIMG+] where you want the image be displayed.

      If you are running ditto 1.0.2 or 1.1.2 there are several examples how to in the forum to set correctly your ditto call

      :-)

        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
        • 16194
        • 103 Posts
        Thank you! I will give it a try.
          Impossible is nothing - with ModX