Git Product home page Git Product logo

silverstripe-gridfieldaddons's People

Contributors

derrobert avatar smindel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

silverstripe-gridfieldaddons's Issues

Using GridFieldExpandableForm forbidden in ModelAdmin?

I'm attempting to use ExpandableForm on my ModelAdmin's managed model. Not on a relation of managed model which the current documentation gives an example for. When I click on a record's row, I get a popup error, "Forbidden". Here's the getEditForm in the model admin:

  public function getEditForm($id = null, $fields = null) {
    $form = parent::getEditForm($id, $fields);
    $gridFieldName = $this->sanitiseClassName($this->modelClass);
    $gridField = $form->Fields()->fieldByName($gridFieldName);

    $expandedFields = new FieldList(array(
      new TextField('Content'),
    ));
    $gridField->getConfig()->addComponent(new GridFieldExpandableForm($expandedFields));

    return $form;
  }

And here's what I'm getting in my browser's console:

Artist/EditForm/field/Artist/expand/31 Failed to load resource: the server responded with a status of 403 (Forbidden)

Any ideas what's going wrong?

404 when trying to save.

I get "Action 'ExpandableForm' isn't available on class GridFieldExpandableForm_ItemRequest" when trying to save a record. This is likely tied to all the changes in request handling that's been happening lately.

Please don't use the "silverstripe" composer namespace

Hey Andy, how's things! :) Can you please change the namespace for your composer package here? https://github.com/smindel/silverstripe-GridFieldAddOns/blob/master/composer.json#L2
It's currently set to silverstripe/gridfield-addons, which is kind of reserved for the SilverStripe organization (so the same scope as github.com/silverstripe). I'd suggest smindel/gridfield-addons. You'd need to rename on https://packagist.org/packages/silverstripe/gridfield-addons as well.

We've got a SilverPikers party coming up here in Wellington for all current and past SilverStripers (moving offices next door!). Might be a biiiiit of a short notice, but you're invited as well!

Viele Grüße
Ingo

Error adding User Columns Extension in _config.php

Using

Member::add_extension('GridFieldUserColumnsExtension');

causes error (Undefined extension)

After changing it to this, all was well

Object::add_extension('Member', 'GridFieldUserColumnsExtension');

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.