It's not able to drag widgets in WidgetAreaEditor, does anyone has same problem and know to fix?
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Anyone please?
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
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
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
The official branch for widgets doesn't work.
Use this one for now until the pull request is accepted.
Thank Liam :)