<div dir="ltr">Hi Alan,<div><br></div><div>This is working for me.</div><div><br></div><div>Code snippets:</div><div><br></div><div><div>          public function getHeaderScripts(Vtiger_Request $request) {</div><div><span class="" style="white-space:pre">           </span>$headerScriptInstances = parent::getHeaderScripts($request);</div>
<div><span class="" style="white-space:pre">            </span>$jsFileNames = array(</div><div><span class="" style="white-space:pre">                      </span><b>"layouts.vlayout.modules.ModuleName.resources.jsFile1",</b></div><div><b><span class="" style="white-space:pre">                      </span>"layouts.vlayout.modules.ModuleName.resources.jsFile2",</b></div>
<div><b><span class="" style="white-space:pre">                   </span>"layouts.vlayout.modules.ModuleName.resources.jsFile3"</b></div><div><span class="" style="white-space:pre">         </span>);</div><div><br></div><div><span class="" style="white-space:pre">                </span>$jsScriptInstances = $this->checkAndConvertJsScripts($jsFileNames);</div>
<div><span class="" style="white-space:pre">            </span>$headerScriptInstances = array_merge($headerScriptInstances, $jsScriptInstances);</div><div><span class="" style="white-space:pre">          </span>return $headerScriptInstances;</div>
<div><span class="" style="white-space:pre">    </span>}</div><div><br></div><div><span class="" style="white-space:pre"> </span>public function getHeaderCss(Vtiger_Request $request) {</div><div><span class="" style="white-space:pre">            </span>$headerCssInstances = parent::getHeaderCss($request);</div>
<div><br></div><div><span class="" style="white-space:pre">           </span>$cssFileNames = array(</div><div><span class="" style="white-space:pre">                     </span><b>"layouts.vlayout.modules.ModuleName.resources.cssFile"</b></div>
<div><span class="" style="white-space:pre">            </span>);</div><div><span class="" style="white-space:pre">         </span>$cssInstances = $this->checkAndConvertCssStyles($cssFileNames);</div><div><span class="" style="white-space:pre">         </span></div>
<div><span class="" style="white-space:pre">            </span>$headerCssInstances = array_merge($headerCssInstances, $cssInstances);</div><div><br></div><div><span class="" style="white-space:pre">            </span>return $headerCssInstances;</div>
<div><span class="" style="white-space:pre">    </span>}</div></div><div><br></div><div><br></div><div>Try this. Add files without extension, and instead of directory separator just use dots.</div><div><br></div></div><div class="gmail_extra">
<br clear="all"><div><div dir="ltr"><div style="color:rgb(136,136,136)"><b style="color:rgb(34,34,34)">Z poważaniem / <span style="font-size:10pt">Best regards</span></b><br></div><div style="color:rgb(136,136,136)"><b style="color:rgb(34,34,34)"><span style="font-size:10pt"><br>
</span></b></div><div style="color:rgb(136,136,136)"><b>Maciej Stencel</b></div><div style="color:rgb(136,136,136)"><b>Tel: <a value="+48884998123" style="color:rgb(17,85,204)">+48 884-997-123</a></b></div><div style="color:rgb(136,136,136)">
<b><a href="mailto:m.stencel@opensaas.pl" style="color:rgb(17,85,204)" target="_blank">m.stencel@opensaas.pl</a><br><font color="#888888"><span style="color:rgb(127,127,127)"></span></font><font color="#888888"><span style="color:rgb(127,127,127)"><a href="http://www.opensaas.pl/" style="color:rgb(17,85,204)" target="_blank">www.OpenSaaS.pl</a></span></font></b></div>
</div></div>
<br><br><div class="gmail_quote">2014-07-05 17:04 GMT+02:00 Alan Lord (News) <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I raised this early on with vtiger 6.0 but it's still a problem in vtiger 6.1<br>
<br>
I can't use a CDN for Javascript or stylesheets in my View classes, e.g.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
public function getHeaderCss(Vtiger_Request $request) {<br>
                $headerCssInstances = parent::getHeaderCss($request)<u></u>;<br>
        <br>
                $cssFileNames = array(<br>
                        '~/layouts/vlayout/modules/<u></u>GeoTools/resources/GeoTools.<u></u>css',<br>
                        '<a href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" target="_blank">http://cdn.leafletjs.com/<u></u>leaflet-0.7.3/leaflet.css</a>',<br>
                );<br>
                $cssInstances = $this-><u></u>checkAndConvertCssStyles($<u></u>cssFileNames);<br>
                $headerCssInstances = array_merge($<u></u>headerCssInstances, $cssInstances);<br>
        <br>
                return $headerCssInstances;<br>
        }<br>
        <br>
</blockquote>
<br>
This is rendered in the <head> as<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
link media="screen" type="text/css" href="<a href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css?&v=6.0.0" target="_blank">http://cdn.leafletjs.<u></u>com/leaflet-0.7.3/leaflet.css?<u></u>&v=6.0.0</a>" rel="stylesheet"><br>

</blockquote>
<br>
So it will not work.<br>
<br>
This *needs* fixing. Applies to both css and javascript functions.<span class="HOEnZb"><font color="#888888"><br>
<br>
Al<br>
<br>
<br>
-- <br>
Libertus Solutions<br>
<a href="http://www.libertus.co.uk" target="_blank">http://www.libertus.co.uk</a><br>
<br>
______________________________<u></u>_________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</font></span></blockquote></div><br></div>