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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

SS3 - Widget is not draggable / not able to add widgets


Reply

7 Posts   670 Views

Avatar
Hattori

19 July 2012 at 8:02am Community Member, 20 Posts

It's not able to drag widgets in WidgetAreaEditor, does anyone has same problem and know to fix?

Avatar
Hattori

19 July 2012 at 10:54pm Community Member, 20 Posts

Anyone please?

Avatar
swaiba

19 July 2012 at 11:10pm Forum Moderator, 1796 Posts

Assuming you have downloaded the correct version from https://github.com/silverstripe/silverstripe-widgets - I'd suggest you raise the issue there directly to get a response

Avatar
Hattori

20 July 2012 at 3:25am Community Member, 20 Posts

Thank for quick replying swaiba, i have downloaded the version from your url but i does not work. Below is my code:

class Page extends SiteTree {
   
   public static $db = array();

   public static $has_one = array(
      'Widgets' => 'WidgetArea'
   );
   
   static $has_many = array();
   
   /**
    * Method to update CMS fields
    */
   public function getCMSFields(){
      $fields = parent::getCMSFields();
      
      //Widgets
      $fields->addFieldToTab('Root.Widgets', new WidgetAreaEditor("Widgets"));
      
      return $fields;
   }
}

I will use $Widgets to show widgets in the template

Attached Files
Avatar
swaiba

20 July 2012 at 3:27am Forum Moderator, 1796 Posts

I think I might program in a "repeat my last reply" button to ss forms... but until then...

I'd suggest you raise the issue there directly to get a response

Avatar
Liam

21 July 2012 at 12:40pm Community Member, 470 Posts

The official branch for widgets doesn't work.

Use this one for now until the pull request is accepted.

https://github.com/UndefinedOffset/silverstripe-widgets

Avatar
Hattori

22 July 2012 at 8:15am Community Member, 20 Posts

Thank Liam :)