From 593efa0a34873dca9953d3e84ff1d67a1d1079f3 Mon Sep 17 00:00:00 2001 From: ryuring Date: Tue, 27 Feb 2024 09:11:17 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=AB=E3=82=B9=E3=82=BF=E3=83=A0=E3=82=B3?= =?UTF-8?q?=E3=83=B3=E3=83=86=E3=83=B3=E3=83=84=E3=81=AE=E3=83=91=E3=83=B3?= =?UTF-8?q?=E3=81=8F=E3=81=9A=E3=82=92=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 二重で表示されていたため --- .../src/Controller/CustomContentController.php | 6 +++++- .../plugin/BcCustomContent/CustomContent/default/index.php | 2 ++ .../plugin/BcCustomContent/CustomContent/default/view.php | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) 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); ?>