modx->getOption('manager_url',null,MODX_MANAGER_URL); $this->addJavascript($mgrUrl.'assets/modext/widgets/element/modx.panel.tv.renders.js'); $this->addJavascript($mgrUrl.'assets/modext/widgets/resource/modx.grid.resource.security.local.js'); $this->addJavascript($mgrUrl.'assets/modext/widgets/resource/modx.panel.resource.tv.js'); $this->addJavascript($mgrUrl.'assets/modext/widgets/resource/modx.panel.resource.js'); $this->addJavascript($mgrUrl.'assets/modext/widgets/resource/modx.panel.resource.weblink.js'); $this->addJavascript($mgrUrl.'assets/modext/sections/resource/create.js'); $this->addJavascript($mgrUrl.'assets/modext/sections/resource/weblink/create.js'); $this->addHtml(''); /* load RTE */ $this->loadRichTextEditor(); } /** * Return the location of the template file * @return string */ public function getTemplateFile() { return 'resource/weblink/create.tpl'; } public function process(array $scriptProperties = array()) { $placeholders = parent::process($scriptProperties); $this->resourceArray['responseCode'] = $this->resource->getProperty('responseCode','core',$_SERVER['SERVER_PROTOCOL'] . ' 301 Moved Permanently'); return $placeholders; } }