sardoj / VTModuleDesigner

Module Designer for Vtiger 6
Other
69 stars 61 forks source link

YetiForce CRM #122

Open mykljohn opened 9 years ago

mykljohn commented 9 years ago

Hey, great job with this designer. We're looking at migrating to YT, does it work with YetiForce?

When trying to install it, it fails with this message Failed Module does not contain default language (en_us).

witer30 commented 8 years ago

as i am correct in yetiforce there is possibility to build up module...

mykljohn commented 8 years ago

Sorry, I'm not sure what your comment is saying. I can create a module in YF, but I would like to use this ModuleDesigner. Do you know how to install it in YetiForce?

sardoj commented 8 years ago

Hello,

I don't know if it works in Yetiforce. Please can you test it and send feedback?

Thank you so much!

mykljohn commented 8 years ago

Hi Jonathan, I tried to install it in YetiForce, but got the above error Module does not contain default language (en_us). Can you help me with the install? I'll gladly test away. :)

witer30 commented 8 years ago

Maybe you should copy modul language file into folder Languages of YetiForce Dnia 11 października 2015 23:45 mykljohn napisał(a): Hi Jonathan, I tried to install it in YetiForce, but got the above error Module does not contain default language (en_us). Can you help me with the install? I'll gladly test away. :)— Reply to this email directly or view it on GitHub.

witer30 commented 8 years ago

and, is it works? Dnia 11 października 2015 23:45 mykljohn napisał(a): Hi Jonathan, I tried to install it in YetiForce, but got the above error Module does not contain default language (en_us). Can you help me with the install? I'll gladly test away. :)— Reply to this email directly or view it on GitHub.

mykljohn commented 8 years ago

No tenia chance para tratar. Voy a hacerlo hoy noche. cheers

mykljohn commented 8 years ago

I completed the install, I had to re-zip the files. I copied the patch. but when I open ModuleDesigner, it shows nothing. here's the error log:

Database ERROR: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'globo_yeti.vtiger_parenttab' doesn't exist Query: SELECT * FROM vtiger_parenttab ORDER BY parenttab_label ASC

0 PearDatabase->checkError() called at [/yeti/include/database/PearDatabase.php:354]

1 PearDatabase->pquery() called at [/yeti/modules/Settings/ModuleDesigner/views/Index.php:41]

2 Settings_ModuleDesigner_Index_View->process() called at [/yeti/include/main/WebUI.php:220]

3 Vtiger_WebUI->process() called at [/yeti/index.php:25]

mykljohn commented 8 years ago

It appears that in YetiForce, they have the parenttab data in php code config/parent_tabdata.php

<?php

//This file contains the commonly used variables

$parent_tab_info_array=array(1=>'My Home Page',2=>'Marketing',3=>'Sales',4=>'Support',5=>'Analytics',6=>'Inventory',7=>'Tools',8=>'Settings');

$parent_child_tab_rel_array=array(1=>...

?>

playmono commented 8 years ago

I would recommend to use build up YT module.

marko89kv commented 8 years ago

@mykljohn Have you managed to get Module Designer working? I'm facing the same issue.

mykljohn commented 8 years ago

No it does not work. YF has different variable arrays

vipulkarotra commented 8 years ago

For me it worked !!!

Steps I Did: 1) Unzip and rezip the VTDesigner direct selecting the internal folders and xml file. 2) Comment following lines in PackageImport located at vtlib/vtiger/PackageImport.php

To Avoid Error: Module does not contain default language (en_us). Comment below code: // Verify module language file. // if (!empty($language_modulename) && $language_modulename == $modulename) { // $languagefile_found = true; // } elseif (!$updatefile_found && !$languagefile_found) { // $_errorText = vtranslate('LBL_ERROR_NO_DEFAULT_LANGUAGE', 'Settings:ModuleManager'); // $_errorText = str_replace('DEFAULTLANGUAGE', vglobal('default_language'), $_errorText); // $this->_errorText = $_errorText; // }

and place : $languagefile_found = true;


To Avoid Error: Bundle Version: Fatal Error: Could not call function getversion(). Comment below code: //if (!empty($this->_modulexml) && // !empty($this->_modulexml->dependencies) && // !empty($this->_modulexml->dependencies->vtiger_version)) { // $moduleVersion = (string) $this->_modulexml->dependencies->vtiger_version;

    //  if (version_compare($moduleVersion, $YetiForce_current_version, '>=') === true) {
    //          $moduleVersionFound = true;
    //      } else {
    //          $_errorText = vtranslate('LBL_ERROR_VERSION', 'Settings:ModuleManager');
    //          $_errorText = str_replace('__MODULEVERSION__', $moduleVersion, $_errorText);
        //      $_errorText = str_replace('__CRMVERSION__', $YetiForce_current_version, $_errorText);
        //      $this->_errorText = $_errorText;
        //  }

    //}

and place : $moduleVersionFound = true;


3) Attach zip file and click Import

4) Once Install, it will through error while using Designer: To Avoid Error: Database ERROR: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'globo_yeti.vtiger_parenttab' doesn't exist

Change the code in Index.php located at modules/Settings/ModuleDesigner/views/Index.php


Old Code: //Get parent tabs $query = "SELECT * FROM vtiger_parenttab ORDER BY parenttab_label ASC";

New Code: //Get parent tabs $query = "SELECT * FROM vtiger_tab ORDER BY parent ASC";


5) Change the style for Tab in VTDesigner: layouts \ vlayout \ modules \ Settings \ ModuleDesigner \ assets \ styles.css

.md-tab{ /* height: 15px; */ // Comment height. }


The End....

And It start working....