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

nilay khatri nilay.spartan at gmail.com
Thu Jun 25 08:01:20 GMT 2020


Okay, I will look into it in more detail in a couple of days and will get
back.

On Thu, Jun 25, 2020 at 1:11 PM Uma S <uma.s at vtiger.com> wrote:

> 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
> _______________________________________________
> http://www.vtiger.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20200625/71c923a9/attachment.html>


More information about the vtigercrm-developers mailing list