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.

Form Questions /

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

Change the way Image Uploading Iframe looks


Go to End


2 Posts   2254 Views

Avatar
michelle84

Community Member, 5 Posts

23 February 2009 at 7:46am

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

Avatar
Willr

Forum Moderator, 5523 Posts

24 February 2009 at 9:22am

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