true, 'resourceName' => 'Cms', 'itemName' => 'Page', 'itemsName' => 'Pages', 'autofillHeader' => true, 'hasRedirection' => false, 'additionalPages' => false, 'mode' => 'dummy', // dummy, advanced 'hasHeaderImage' => false, 'headerImageIsRequired' => false, 'headerImageWidth' => 960, 'headerImageHeight' => 190, 'headerImageResizeMethod' => 'cropCenter', 'headerImageExcludePages' => array('(isRoot=y)'), // масив з селекторами (стрічка або масив з параметрами) для Qs_SiteMap::find() 'modes' => array( 'dummy' => array( 'linkSeparator' => ' | ', 'allowAddItem' => false, 'hiddenFields' => array(), // 'header', 'title' 'item' => array( 'linkSeparator' => ' ', 'allowDelete' => false, 'filter' => array('type' => array('HtmlBlock_')), ), ), 'advanced' => array( 'linkSeparator' => ' | ', 'allowAddItem' => true, 'item' => array( 'linkSeparator' => ' ', 'allowDelete' => true, ), ), ), 'allowReorderTopLevelPages' => true, 'allowAddTopLevelPage' => false, 'analytics' => array( 'url' => 'http://www.google.com/analytics/', ), 'cancelMessage' => 'Do you really want to cancel all changes?', 'accountDefaultOptions' => [ 'showInSiteMap' => ['show' => 'n', 'value' => 'n', 'title' => 'Show in Sitemap'], 'isIndexing' => ['show' => 'n', 'value' => 'n', 'title' => 'Show in Sitemap.xml'], 'showInMenu' => ['show' => 'n', 'value' => 'n', 'title' => 'Show in Menu'], 'isAccountNavigation' => ['show' => 'y', 'value' => 'y', 'title' => 'Include to Account Navigation'], 'showInFooter' => ['show' => 'n', 'value' => 'n', 'title' => 'Show in Footer'], 'enabled' => ['show' => 'y', 'value' => 'y', 'title' => 'Show on User End'], 'allowDelete' => ['show' => 'n', 'value' => 'n', 'title' => 'Allow Delete'], 'isSecure' => ['show' => 'n', 'value' => 'n', 'title' => 'Secure Page'], 'final' => ['show' => 'n', 'value' => 'n', 'title' => 'Final Page'], 'system' => ['show' => 'n', 'value' => 'n', 'title' => 'System (hidden in admin end)'], 'showInDropdowns' => ['show' => 'n', 'value' => 'n', 'title' => 'Include in the result of the method App_Cms_Obj::getPages4Select()'], 'showSideBlock' => ['show' => 'n', 'value' => 'n', 'title' => 'Show Side Blocks'], ], 'defaultOptions' => [ 'showInSiteMap' => array('show' => 'n', 'value' => 'n', 'title' => 'Show in Sitemap'), 'isIndexing' => array('show' => 'y', 'value' => 'y', 'title' => 'Show in Sitemap.xml'), 'showInMenu' => array('show' => 'n', 'value' => 'n', 'title' => 'Show in Menu'), 'showInFooter' => array('show' => 'n', 'value' => 'n', 'title' => 'Show in Footer'), 'enabled' => array('show' => 'y', 'value' => 'y', 'title' => 'Show on User End'), 'allowDelete' => array('show' => 'n', 'value' => 'n', 'title' => 'Allow Delete'), 'isSecure' => array('show' => 'n', 'value' => 'n', 'title' => 'Secure Page'), 'final' => array('show' => 'n', 'value' => 'n', 'title' => 'Final Page'), 'system' => array('show' => 'n', 'value' => 'n', 'title' => 'System (hidden in admin end)'), 'showInDropdowns' => array('show' => 'n', 'value' => 'y', 'title' => 'Include in the result of the method App_Cms_Obj::getPages4Select()'), ] ); if (App_Admin_Auth::getInstance()->getSuMode()) { $config['mode'] = 'advanced'; } $modeConfig = (array) $config['modes'][$config['mode']]; $config = array_merge($config, $modeConfig); unset($config['modes']); return $config;