Jump to:

23550 Posts in 19336 Topics by 2890 members

General Questions

SilverStripe Forums » General Questions » Preview full size image in FileIFrameField

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

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

Page: 1
Go to End
Author Topic: 838 Views
  • swaiba
    Avatar
    Forum Moderator
    1796 Posts

    Preview full size image in FileIFrameField Link to this post

    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)

  • swaiba
    Avatar
    Forum Moderator
    1796 Posts

    Re: Preview full size image in FileIFrameField Link to this post

    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 %>

  • pingu
    Avatar
    Community Member
    75 Posts

    Re: Preview full size image in FileIFrameField Link to this post

    Is there a way to do this without hacking the core?

  • swaiba
    Avatar
    Forum Moderator
    1796 Posts

    Re: Preview full size image in FileIFrameField Link to this post

    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

    838 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.