Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

$Thumbnail


Go to End


2 Posts   608 Views

Avatar
KrassavaBoy

Community Member, 13 Posts

13 September 2014 at 10:33pm

I use this object: <a href="$Link">$Thumbnail.SetRatioSize(86,94)</a>
On page I have <a href="/about/news/page-53/" class="dohover withicon"><img src="/assets/news-articles/thumbnails/_resampled/SetRatioSize250150-GyJ9EN4vmS8.jpg" alt="GyJ9EN4vmS8" /></a>
But i want add <class="set border"> to <img> tag. How, please, help

Avatar
KrassavaBoy

Community Member, 13 Posts

14 September 2014 at 12:27am

Solved, thank you
<img src="$Thumbnail.CroppedImage(250,150).URL" class="setborder" alt="$Title" />