i have a ComplexTableField with two text columns and a single image column. i want the image column to show a preview/thumbnail/scaled version only. i know how to do this on the client side, but not sure on the CMS side.
cheers in advance.
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
i have a ComplexTableField with two text columns and a single image column. i want the image column to show a preview/thumbnail/scaled version only. i know how to do this on the client side, but not sure on the CMS side.
cheers in advance.
have a look at http://doc.silverstripe.com/doku.php?id=imagefield
Do you mean in the CTF's pop-up window, or in the table itself?
> Do you mean in the CTF's pop-up window, or in the table itself?
in the table itself
hm, don't think anybody tried this yet, but turns out its no problem :)
see http://pastie.caboo.se/194674
see http://doc.silverstripe.com/doku.php?id=gd&s=image and http://doc.silverstripe.com/doku.php?id=imageupload on how to create your own thumbnails (size, compression, padding, ...)
thank you. this worked like a charm