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_', /*'WideSlide\\', 'FacebookComments\\'*/)), ), ), '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?', 'newPageDefaults' => [ 'meta' => [ 'itemGroups' => [ 3 /* LEFT_ITEMS */, 1 /* ITEMS */, 2 /* RIGHT_ITEMS */, ] ], 'options' => [] ], ); 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;