Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » cms popup image upload workaround

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

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

Page: 1
Go to End
Author Topic: 1794 Views
  • quicked
    Avatar
    Community Member
    32 Posts

    cms popup image upload workaround Link to this post

    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.

  • Blackdog
    Avatar
    Community Member
    156 Posts

    Re: cms popup image upload workaround Link to this post

    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') );

  • Blackdog
    Avatar
    Community Member
    156 Posts

    Re: cms popup image upload workaround Link to this post

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

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