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   703 Views

Avatar
Hattori

Community Member, 20 Posts

19 July 2012 at 8:02am

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

Avatar
Hattori

Community Member, 20 Posts

19 July 2012 at 10:54pm

Anyone please?

Avatar
swaiba

Forum Moderator, 1799 Posts

19 July 2012 at 11:10pm

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

Community Member, 20 Posts

20 July 2012 at 3:25am

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

Forum Moderator, 1799 Posts

20 July 2012 at 3:27am

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

Community Member, 470 Posts

21 July 2012 at 12:40pm

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

Community Member, 20 Posts

22 July 2012 at 8:15am

Thank Liam :)