From c29722b43bca6feeb0b15dfa7be415611ff6fbec Mon Sep 17 00:00:00 2001 From: Marco Crespi Date: Thu, 28 Jun 2018 14:06:41 +0200 Subject: [PATCH] feat(page-element): Add edit button for pages --- code/PageElement.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/PageElement.php b/code/PageElement.php index 3b6de8e..3abf948 100644 --- a/code/PageElement.php +++ b/code/PageElement.php @@ -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",