Skip to content

Commit

Permalink
Merge branch 'dev-5' into dev-5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Feb 27, 2024
2 parents 38d8d97 + 593efa0 commit 73f8723
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 73f8723

Please sign in to comment.