[Vtigercrm-developers] Vtiger 7.0.0 Published

Conrado Maggi comaggi at gmail.com
Wed May 24 10:20:49 GMT 2017


Alan is right.

You need one zip with a folder for 6.x layouts and another one for vt7
layouts.

If need to add a JS to head them you will need to do something like this:

function getHeaderScripts(Vtiger_Request $request) {
$headerScriptInstances = parent::getHeaderScripts($request);
$moduleName = $request->getModule();

    include('vtigerversion.php');
    $version = explode('.', $vtiger_current_version)[0];

    if($version > 6){
     $jsFileNames = array(
"layouts.v7.modules.VGSDuplicateDetector.resources.VGSDuplicateDetectorAddNew"
,
     );
    } else {
     $jsFileNames = array(
"layouts.vlayout.modules.VGSDuplicateDetector.resources.VGSDuplicateDetectorAddNew"
,
     );
    }
$jsScriptInstances = $this->checkAndConvertJsScripts($jsFileNames);
$headerScriptInstances = array_merge($headerScriptInstances,
$jsScriptInstances);
return $headerScriptInstances;
}


Conrado

On Wed, May 24, 2017 at 12:12 PM, Alan Lord <alanslists at gmail.com> wrote:

> On 24/05/17 11:01, IT-Solutions4You wrote:
>
>> This is not possible for all extension. Maybe for entity module
>> (vtiger_tab.isentitymodule), but not for extension. What's now ? ;-)
>>
>
> Err, not sure what you mean?
>
> GeoTools is an extension module:
>
> <module>
>>     <name>GeoTools</name>
>>     <label>GeoTools</label>
>>     <parent>Tools</parent>
>>     <type>extension</type>
>>     <version>2.0.2</version>
>>     <dependencies>
>>         <vtiger_version>6.1.0</vtiger_version>
>>         <vtiger_max_version>7.*</vtiger_max_version>
>>     </dependencies>
>>
>
> And has been available on vtiger On-Demand (7.*) for ages.
>
> Al
>
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20170524/5bfaeffe/attachment.html>


More information about the vtigercrm-developers mailing list