context->getOption('manager_url', MODX_MANAGER_URL, $this->modx->_userConfig); $collectionsAssetsUrl = $this->modx->getOption('collections.assets_url', null, $this->modx->getOption('assets_url', null, MODX_ASSETS_URL) . 'components/collections/'); $connectorUrl = $collectionsAssetsUrl . 'connector.php'; $collectionsJsUrl = $collectionsAssetsUrl . 'js/mgr/'; $this->addCss($collectionsAssetsUrl . 'css/mgr.css'); $userCSS = $this->modx->getOption('collections.user_css', ''); if ($userCSS != '') { $this->addCss($userCSS); } $this->addJavascript($managerUrl . 'assets/modext/util/datetime.js'); $this->addJavascript($managerUrl . 'assets/modext/widgets/element/modx.panel.tv.renders.js'); $this->addJavascript($managerUrl . 'assets/modext/widgets/resource/modx.grid.resource.security.local.js'); $this->addJavascript($managerUrl . 'assets/modext/widgets/resource/modx.panel.resource.tv.js'); $this->addJavascript($managerUrl . 'assets/modext/widgets/resource/modx.panel.resource.js'); $this->addJavascript($managerUrl . 'assets/modext/sections/resource/update.js'); $this->addJavascript($collectionsJsUrl . 'collections.js'); $this->addLastJavascript($collectionsJsUrl . 'sections/category/update.js'); $this->addLastJavascript($collectionsJsUrl . 'widgets/category/collections.panel.category.js'); $this->addLastJavascript($collectionsJsUrl . 'widgets/category/collections.panel.selection.js'); $this->addLastJavascript($collectionsJsUrl . 'widgets/category/collections.grid.resources.js'); $this->addLastJavascript($collectionsJsUrl . 'widgets/category/collections.grid.selection.js'); $this->addLastJavascript($collectionsJsUrl . 'widgets/category/collections.window.js'); $this->addLastJavascript($collectionsJsUrl . 'extra/collections.combo.js'); $this->addLastJavascript($collectionsJsUrl . 'extra/griddraganddrop.js'); $this->addLastJavascript($collectionsJsUrl . 'extra/collections.renderers.js'); $userJS = $this->modx->getOption('collections.user_js', ''); if ($userJS != '') { $this->addLastJavascript($userJS); } $collectionsTemplate = $this->getCollectionsTemplate(); $response = $this->modx->runProcessor('system/derivatives/getlist', array( 'skip' => 'modXMLRPCResource', 'class' => 'modResource', )); $response = $this->modx->fromJSON($response->response); if ($response == '') { $response = array(); } else { $response = $response['results']; } $this->loadConfig(); $this->addHtml(' '); /* load RTE */ $this->loadRichTextEditor(); } }