Giter VIP home page Giter VIP logo

Comments (6)

assertchris avatar assertchris commented on July 18, 2024

I can't reproduce this error, using 3.1.x-dev framework/CMS and master blog. What about widgets doesn't work? Do you get an error? Is the template rendered incorrectly?

from silverstripe-widgets.

sunnysideup avatar sunnysideup commented on July 18, 2024

Sorry for the cryptic message. We had widgets loaded onto a site and only the first one (or last on - can remember) would show on the front-end. Also, the use of some fields (e.g. treedropdownfield) does not work on widgets.

from silverstripe-widgets.

assertchris avatar assertchris commented on July 18, 2024

Thanks for the info, I'll check it out again.

from silverstripe-widgets.

sunnysideup avatar sunnysideup commented on July 18, 2024

the treedropdownfield error (and other form fields) is documented all over the place, it has something to do with the "form" object not being available to the field object.

e.g.

$this->Form()->foo()

throws an error (method foo called on a non-object) on a form field when used in the widgets. Not all form fields call "form" and so the basic form fields work, but the trickier ones don't.

from silverstripe-widgets.

MattyBalaam avatar MattyBalaam commented on July 18, 2024

I remember having this issue in the past, a solution for me was to make sure each widget $Content was in a uniquely named element: http://www.silverstripe.org/community/forums/widgets-2/show/16123#post309314

from silverstripe-widgets.

robbieaverill avatar robbieaverill commented on July 18, 2024

Hi @sunnysideup @MattyBalaam, I'm going to close this as it's fairly old and stale now. If this is still an issue, please feel free to reopen. Thanks!

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.