[Vtigercrm-developers] Fwd: Re: vt61 getHeaderCss vs. getHeaderScripts

Vic Cekvenich vic.cvc at gmx.com
Sun Aug 17 22:05:15 GMT 2014



-------- Original Message --------
Subject: 	Re: [Vtigercrm-developers] vt61 getHeaderCss vs. getHeaderScripts
Date: 	Sat, 2 Aug 2014 11:17:18 +0530
From: 	Prasad <prasad at vtiger.com>
Reply-To: 	vtigercrm-developers at lists.vtigercrm.com
To: 	vtigercrm-developers at lists.vtigercrm.com 
<vtigercrm-developers at lists.vtigercrm.com>



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 
<mailto: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 --------------
_______________________________________________
http://www.vtiger.com/


More information about the vtigercrm-developers mailing list