diff --git a/plugins/bc-custom-content/src/Controller/CustomContentController.php b/plugins/bc-custom-content/src/Controller/CustomContentController.php index 19f2b55d95..5dbe39af77 100644 --- a/plugins/bc-custom-content/src/Controller/CustomContentController.php +++ b/plugins/bc-custom-content/src/Controller/CustomContentController.php @@ -36,7 +36,11 @@ class CustomContentController extends BcFrontAppController public function initialize(): void { parent::initialize(); - $this->loadComponent('BaserCore.BcFrontContents', ['viewContentCrumb' => true]); + if ($this->getRequest()->getParam('action') === 'index') { + $this->loadComponent('BaserCore.BcFrontContents'); + } else { + $this->loadComponent('BaserCore.BcFrontContents', ['viewContentCrumb' => true]); + } } /** diff --git a/plugins/bc-front/templates/plugin/BcCustomContent/CustomContent/default/index.php b/plugins/bc-front/templates/plugin/BcCustomContent/CustomContent/default/index.php index c5b9d68036..18fb8a7e8a 100644 --- a/plugins/bc-front/templates/plugin/BcCustomContent/CustomContent/default/index.php +++ b/plugins/bc-front/templates/plugin/BcCustomContent/CustomContent/default/index.php @@ -19,6 +19,8 @@ * @noTodo * @unitTest */ +$this->BcBaser->setTitle($customContent->content->title); +$this->BcBaser->setDescription($customContent->content->description); ?> diff --git a/plugins/bc-front/templates/plugin/BcCustomContent/CustomContent/default/view.php b/plugins/bc-front/templates/plugin/BcCustomContent/CustomContent/default/view.php index 8cf3550ad7..b7eac631b0 100644 --- a/plugins/bc-front/templates/plugin/BcCustomContent/CustomContent/default/view.php +++ b/plugins/bc-front/templates/plugin/BcCustomContent/CustomContent/default/view.php @@ -20,6 +20,7 @@ * @unitTest */ $customLinks = $this->BcBaser->getCustomLinks($customContent->custom_table_id); +$this->BcBaser->setTitle($customEntry->title); ?>