true, 'resourceName' => 'Cms', 'itemName' => 'Page', 'itemsName' => 'Pages', 'autofillHeader' => true, 'hasRedirection' => false, 'additionalPages' => false, 'mode' => 'dummy', // dummy, advanced 'hasHeaderImage' => false, 'headerImageIsRequired' => false, 'headerImageWidth' => 1165, 'headerImageHeight' => 465, '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?' ); 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;