Skip to content

Commit

Permalink
カスタムコンテンツのパンくずを調整
Browse files Browse the repository at this point in the history
二重で表示されていたため
  • Loading branch information
ryuring committed Feb 27, 2024
1 parent caf866d commit 593efa0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* @noTodo
* @unitTest
*/
$this->BcBaser->setTitle($customContent->content->title);
$this->BcBaser->setDescription($customContent->content->description);
?>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* @unitTest
*/
$customLinks = $this->BcBaser->getCustomLinks($customContent->custom_table_id);
$this->BcBaser->setTitle($customEntry->title);
?>


Expand Down

0 comments on commit 593efa0

Please sign in to comment.