diff --git a/application/src/Controller/Site/PageController.php b/application/src/Controller/Site/PageController.php index c3b23ef91..cfbc07654 100644 --- a/application/src/Controller/Site/PageController.php +++ b/application/src/Controller/Site/PageController.php @@ -38,7 +38,9 @@ public function showAction() 'site' => $site->id(), ])->getContent(); - $pageBodyClass = 'page site-page-' . preg_replace('([^a-zA-Z0-9\-])', '-', $slug); + $pageBodyClass = 'page ' + . $page->layoutDataValue('class') + . ' site-page-' . preg_replace('([^a-zA-Z0-9\-])', '-', $slug); $this->viewHelpers()->get('sitePagePagination')->setPage($page); diff --git a/application/src/Form/PageLayoutDataForm.php b/application/src/Form/PageLayoutDataForm.php index 7097ea247..4679a8086 100644 --- a/application/src/Form/PageLayoutDataForm.php +++ b/application/src/Form/PageLayoutDataForm.php @@ -35,6 +35,16 @@ public function init() 'id' => 'template-name', ], ]); + $this->add([ + 'name' => 'o:layout_data[class]', + 'type' => 'text', + 'options' => [ + 'label' => 'Class', // @translate + ], + 'attributes' => [ + 'id' => 'page-layout-data-class', + ], + ]); $this->add([ 'type' => 'number', 'name' => 'o:layout_data[grid_column_gap]',