smindel / silverstripe-gridfieldaddons Goto Github PK
View Code? Open in Web Editor NEWGridFieldAddOns is a collection of plugins for the Silverstripe GridField.
GridFieldAddOns is a collection of plugins for the Silverstripe GridField.
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?
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.
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
Using
Member::add_extension('GridFieldUserColumnsExtension');
causes error (Undefined extension)
After changing it to this, all was well
Object::add_extension('Member', 'GridFieldUserColumnsExtension');
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.