Jump to:

794 Posts in 408 Topics by 304 members

Widgets

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: 1656 Views
  • robtek
    Avatar
    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
    Avatar
    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
    Avatar
    Forum Moderator
    1784 Posts

    Re: ImageField on widget Link to this post

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

    http://www.silverstripe.org/widgets-2/show/8603#post290372

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

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