[Vtigercrm-developers] How is version number added to JS files?

Uma S uma.s at vtiger.com
Thu Jun 25 07:39:11 GMT 2020


Hi Nilay,

getSrc() of JsScript.php and vresource_url() of Viewer.php api() has
completely different functionality.

getSrc() => will help in fetching src or linkurl from the respective
jsModel object.

vresource_url() => This will help in binding the version to resource url,
Which acts on the output from getSrc() api

On Wed, Jun 24, 2020 at 5:54 PM nilay khatri <nilay.spartan at gmail.com>
wrote:

> Thanks Uma for pointing it out, I got confused at
> Vtiger/models/JsScript.php  getSrc().
>
> I feel there is some ambiguity here, if we are handling all the links at
> Viewer.php then the getSrc from JsScript is of now use!
>
> On Wed, Jun 24, 2020 at 2:46 PM Uma S <uma.s at vtiger.com> wrote:
>
>> Hi Nilay,
>>
>> vresource_url() api of Viewer.php is binding the resource file to the
>> vtiger version.
>>
>> On Wed, Jun 24, 2020 at 8:06 AM nilay khatri <nilay.spartan at gmail.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> for the JS files a version number is added such as v=7.1.0  to the src.
>>>
>>> I am unable to locate how this is getting done.
>>>
>>> Any hints?
>>> _______________________________________________
>>> http://www.vtiger.com/
>>
>>
>>
>> --
>> With
>> Best Regards
>> Uma.S
>> Vtiger Team
>> _______________________________________________
>> http://www.vtiger.com/
>
> _______________________________________________
> http://www.vtiger.com/



-- 
With
Best Regards
Uma.S
Vtiger Team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20200625/25e29e9f/attachment.html>


More information about the vtigercrm-developers mailing list