From 80bfe5cbbdd7d8f796a8a32e15b5d95e5f80663b Mon Sep 17 00:00:00 2001 From: gevorgmansuryan Date: Wed, 21 Jun 2023 23:16:47 +0400 Subject: [PATCH] Add Support for Custom Pages Without adding to navigation for Space --- models/ContainerPage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/ContainerPage.php b/models/ContainerPage.php index 9b52ae00..b93c4280 100644 --- a/models/ContainerPage.php +++ b/models/ContainerPage.php @@ -26,7 +26,8 @@ class ContainerPage extends Page implements Searchable public static function getDefaultTargets() { return [ - ['id' => self::NAV_CLASS_SPACE_NAV , 'name' => Yii::t('CustomPagesModule.base', 'Space Navigation')] + ['id' => self::NAV_CLASS_SPACE_NAV , 'name' => Yii::t('CustomPagesModule.base', 'Space Navigation')], + ['id' => self::NAV_CLASS_EMPTY, 'name' => Yii::t('CustomPagesModule.base', 'Without adding to navigation (Direct link)')], ]; }