Skip to content

Commit

Permalink
feat(page-element): Add edit button for pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Crespi committed Jun 28, 2018
1 parent 38c082e commit c29722b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/PageElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ public function getCMSFields() {

$config = GridFieldConfig_Base::create()
->removeComponentsByType(GridFieldDataColumns::class)
->addComponent($dataColumns = new GridFieldDataColumns());
->addComponent($dataColumns = new GridFieldDataColumns())
->addComponent(new GridFieldDetailForm())
->addComponent(new GridFieldEditButton());
$dataColumns->setDisplayFields([
"ID" => "ID",
"ClassName" => "Type",
Expand Down

0 comments on commit c29722b

Please sign in to comment.