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.

Archive

Our old forums are still available as a read-only archive.

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

cms popup image upload workaround


Reply

3 Posts   1823 Views

Avatar
quicked

12 April 2008 at 6:13am Community Member, 32 Posts

In the CMS, if you have a complex table listing a bunch of records and you edit these records with the CMSpopup, and you have images in the record, the CMSpopup does not allow you to upload images (some AJAX isssue).

I am looking for suggestions for the best workaround.

Avatar
Blackdog

13 April 2008 at 3:21pm (Last edited: 13 April 2008 3:22pm), Community Member, 156 Posts

Try the FileIFrameField instead of the standard Image Upload field which you would use if it was a single image field.

$fields->push( new FileIFrameField( 'YourPhoto', 'Photo') );

Avatar
Blackdog

13 April 2008 at 11:24pm Community Member, 156 Posts

ok scrap that if you are using 2.2.2 rc2 that method I suggested will break your popup.