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
Konsum
Impossible is nothing - with ModX
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
:-)
Thank you! I will give it a try.
Impossible is nothing - with ModX