From 3cbe62319e05be56b22a7618551784d233273d30 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Fri, 10 Jan 2020 16:24:30 +0100 Subject: [PATCH] Add seo description to page preview for easier editing --- Classes/Hooks/Backend/PageLayoutHeader.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Classes/Hooks/Backend/PageLayoutHeader.php b/Classes/Hooks/Backend/PageLayoutHeader.php index 9b9f516..afe53a8 100644 --- a/Classes/Hooks/Backend/PageLayoutHeader.php +++ b/Classes/Hooks/Backend/PageLayoutHeader.php @@ -47,6 +47,12 @@ class PageLayoutHeader $view->assignMultiple([ 'record' => $this->pageLayoutController->pageinfo, 'metaInfo' => [ + [ + 'label' => 'meta-description', + 'value' => $this->pageLayoutController->pageinfo['description'], + 'field' => 'description', + 'type' => 'string', + ], [ 'label' => 'introduction', 'value' => $this->pageLayoutController->pageinfo['abstract'],