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' => ['(isRoot=y)'], // масив з селекторами (стрічка або масив з параметрами) для Qs_SiteMap::find() 'modes' => [ 'dummy' => [ 'linkSeparator' => ' | ', 'allowAddItem' => false, 'hiddenFields' => [], // 'header', 'title' 'item' => [ 'linkSeparator' => ' ', 'allowDelete' => false, 'filter' => ['type' => ['HtmlBlock_']], ], ], 'advanced' => [ 'linkSeparator' => ' | ', 'allowAddItem' => true, 'item' => [ 'linkSeparator' => ' ', 'allowDelete' => true, ], ], ], 'allowReorderTopLevelPages' => true, 'allowAddTopLevelPage' => false, 'analytics' => [ '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' => constant('IS_SECURE'), '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'], ], 'customOptionsDescription' => '
    ' . '
  1. Use json format only, e.g: {"glossary": {"title": "example glossary"}}
  2. ' . '
  3. Howto enable CKEditor SimpleTemplate plugin: ' . '{"htmlBlock":{"ck":{"toolbar":"DefaultTemplate","templatePlaceholders":["urlToDownload"]}}}
  4. ' . '
' ]; 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;