Comments (6)
There's a good extension you can use to manage widgets via a GridField in SS3, so you can use UploadField's and TreeDropdownField's etc too - https://github.com/g4b0/silverstripe-widget-pages-extension
from silverstripe-widgets.
I have just done a little more digging, I think the issue can be tracked down to something inside this loop:
https://github.com/silverstripe/silverstripe-widgets/blob/master/src/Model/Widget.php#L202
If I have time later today, I may try and have a play around, see if I can work our what is causing it...
from silverstripe-widgets.
same here. i get this error:
Fatal error: Call to a member function FormAction() on a non-object in FormField.php on line 139
from silverstripe-widgets.
Hi, if you see here you can see more details about this issue: #20
The best solution I have come up with so far is on this thread: http://www.silverstripe.org/widgets-2/show/20865
from silverstripe-widgets.
It would be great to have TreeDropdownField for Widgets.
from silverstripe-widgets.
I have done some digging into this issue, it appears that TreeDropdownField
is unaware of what form it is being added to. Widget::getCMSFields()
doesn't seem to use TreeDropdownField::setForm()
correctly and so this error is raised.
You can manually set the form in your getCMSFields
function, but I am not sure how to get the current Form from the CMS (Controller::curr()->EditForm()
causes a different error).
I have kind of gotten stuck at this point, I guess the best solution would be for Widgets to setForm correctly on fields such as TreeDropdownField
, UploadField
, etc, not really sure how though.
from silverstripe-widgets.
Related Issues (20)
- Method 'getRequest' does not exist on 'SilverStripe\Forms\Form' HOT 4
- ENHANCEMENT Apply Versioned extension to Widget model (v4 only) HOT 3
- Fails to load compass HOT 9
- Widgets syncronize? HOT 2
- SS4 WidgetAreaEditor missing namespace HOT 2
- 500 fatal error when trying to add a widget to a page HOT 1
- Check and update module for SS4 compatibility where necessary HOT 1
- Rename HTML Content widget HOT 9
- Widget UX: Widgets appear on incompatible page types HOT 1
- Custom widget not being "Published" HOT 19
- Can't install for SS2.3 and blog2.5 HOT 1
- WidgetAreaID SQL error when adding WidgetArea to a child of Page HOT 7
- control tag is not working HOT 2
- DOCS README needs updating HOT 4
- [Warning] Invalid argument supplied for foreach() on 1.3 release running on SS 3.* HOT 2
- Split screen editing of widgets on a blog page shows TinyMCE too narrow HOT 5
- ListboxField not showing selected values HOT 8
- SS 4.5.1 Duplicate lits of 'Available Widgets' in Silverstripe backened. HOT 2
- Getting Widgets of Another Top Pages(This is Wrong) HOT 1
- Duplicating a page with Widgets doesn't assign new SideBarID HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from silverstripe-widgets.