Jump to:

794 Posts in 409 Topics by 304 members


SilverStripe Forums » Widgets » ImageField on widget

Discuss SilverStripe Widgets.

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

Page: 1
Go to End
Author Topic: 1671 Views
  • robtek
    Community Member
    1 Post

    ImageField on widget Link to this post

    Hi, I tried using ImageField on my custom widget but I got a php error. Is there anyway I can upload images on widget? Please Help. Thanks.

  • MartinPhone
    Community Member
    57 Posts

    Re: ImageField on widget Link to this post

    You should be able to include the same data types in a widget as a page. It's probably a misplaced bracket or something - feel free to post the code for another set of eyes to look at it!

  • swaiba
    Forum Moderator
    1792 Posts

    Re: ImageField on widget Link to this post

    I had this problem a while back and this is my solution...


    ...there is something to do with the ImageField being in the WidgetAreaEditor that fails it so I ended up choosing an image from a dropdown mapped to a folder in the upload. As a nice touch I show the image saved above the select.

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.