[Vtigercrm-developers] Still can't add remote javascript or CSS in Views - VT61
Alan Lord (News)
alanslists at gmail.com
Sat Jul 5 15:04:38 GMT 2014
I raised this early on with vtiger 6.0 but it's still a problem in
vtiger 6.1
I can't use a CDN for Javascript or stylesheets in my View classes, e.g.
> public function getHeaderCss(Vtiger_Request $request) {
> $headerCssInstances = parent::getHeaderCss($request);
>
> $cssFileNames = array(
> '~/layouts/vlayout/modules/GeoTools/resources/GeoTools.css',
> 'http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css',
> );
> $cssInstances = $this->checkAndConvertCssStyles($cssFileNames);
> $headerCssInstances = array_merge($headerCssInstances, $cssInstances);
>
> return $headerCssInstances;
> }
>
This is rendered in the <head> as
> link media="screen" type="text/css" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css?&v=6.0.0" rel="stylesheet">
So it will not work.
This *needs* fixing. Applies to both css and javascript functions.
Al
--
Libertus Solutions
http://www.libertus.co.uk
More information about the vtigercrm-developers
mailing list