Jump to:

2011 Posts in 1436 Topics by 620 members

Form Questions

SilverStripe Forums » Form Questions » Change the way Image Uploading Iframe looks

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

Page: 1
Go to End
Author Topic: 1421 Views
  • michelle84
    Avatar
    Community Member
    5 Posts

    Change the way Image Uploading Iframe looks Link to this post

    I have looked everywhere, but I can't seem to find a template or something like that for the Image Uploading Iframe that is shown in the backend admin.

    I want to change some layout things, for example, the phrase 'Replace Image' is a H2 right now. I would like to change this. I would also like to change the placement of the thumbnail.

    Does anyone know where I have to look?

    (my apologies if I should have posted this in the Templates section. Didn't know which one to choose.)

  • Willr
    Avatar
    Forum Moderator
    5502 Posts

    Re: Change the way Image Uploading Iframe looks Link to this post

    Changing this is a little bit tricky, the template it uses is sapphire/templates/Image_iframe.ss but that file does not have the h2. The heading is outputted from the php code. The $EditImageForm is where the h2 is generated is called from sapphire/core/model/Image.php. The function EditImageForm() (for me this is on line 590) is probably where you need to edit it

    1421 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.