[Vtigercrm-developers] vt61 getHeaderCss vs. getHeaderScripts

Prasad prasad at vtiger.com
Sat Aug 2 05:47:18 GMT 2014


Alan,

Resource file inclusion provides different short-hand syntax. The same is
documented at:
http://community.vtiger.com/help/vtigercrm/developers/extensions/internals.html#resource-file-paths

Please review.

Regards,
Prasad

*Connect with us on: *Twitter <http://twitter.com/vtigercrm> *I* Facebook
<http://www.facebook.com/pages/vtiger/226866697333578?sk=wall> *I* Blog
<https://blogs.vtiger.com/>* I* Wiki
<http://wiki.vtiger.com/index.php/Main_Page> *I *Forums
<https://discussions.vtiger.com>*I* Website <https://www.vtiger.com/>


On Thu, Jul 31, 2014 at 2:36 PM, Alan Lord <alanslists at gmail.com> wrote:

> Hi all,
>
> In 6.1.0 the getHeaderScripts() function takes an array that usually has
> the format:
>
>  'modules.Vtiger.resources.List',
>> "modules.$moduleName.resources.List",
>> 'modules.CustomView.resources.CustomView',
>> "modules.$moduleName.resources.CustomView",
>>
>
> whereas the getHeaderCss() function seems to always contain a format like
> this:
>
>  '~/libraries/fullcalendar/fullcalendar.css',
>> '~/libraries/fullcalendar/fullcalendar-bootstrap.css',
>> '~/libraries/jquery/colorpicker/css/colorpicker.css'
>>
>
> I see two discrepancies between the two formats:
>
> 1. For javascript files the file extension is not used
> 2. The path format requires "/" (Unix only) instead of "."
>
> It would be better if these two functions were consistent in their use and
> behaviour.
>
> Cheers
>
> Al
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20140802/f570c5dc/attachment.html>


More information about the vtigercrm-developers mailing list