When using a FileIFrameField the image selected is shown as a thumbnail - if there is an attached image is there a way of seeing it full size easily?
(I imagine it's a hack to sapphire\templates\FileIFrameField.ss)
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.
to answer my own question...
<% if AttachedFile %>
<div class="mainblock">
$AttachedFile.CMSThumbnail
<br /><a href="$AttachedFile.Link" target="_imagepreview">see full image</a>
<% if DeleteFileForm %>
$DeleteFileForm
<% end_if %>
</div>
<% end_if %>
Is there a way to do this without hacking the core?
I'd guess that if I inherited, overrode or decorated stuff I could do it - but I was interested in short term getting a fullsize preview on that day - it's not something I put out there onto live. Still interested in any answers to this :)