GithubHelp home page GithubHelp logo

Comments (6)

christopherdarling avatar christopherdarling commented on July 22, 2024 1

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.

mlewis-everley avatar mlewis-everley commented on July 22, 2024 1

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.

spierala avatar spierala commented on July 22, 2024

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.

MattyBalaam avatar MattyBalaam commented on July 22, 2024

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.

Bob-Plastyk avatar Bob-Plastyk commented on July 22, 2024

It would be great to have TreeDropdownField for Widgets.

from silverstripe-widgets.

mlewis-everley avatar mlewis-everley commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.