Vtiger module creator hidden module issue Freez Bage module layouts & fileds

91 views Asked by At

Iam using vtiger 7.4.0
I trayed to create module with the original tool Vtiger , enabled from connect SSH with php and enabled the module creator tool and add name and file name but i cant fined the module in home menu , i fined it in (( module layouts & fileds )) but I cant edit any thing and have a freez with clik mouse i cant move to add relationship or add any field just freez all page thanks,

vtiger module creator

1

There are 1 answers

3
Tupax On

So the installation was correct? Try access by URL, something like this: domain.com/index.php?module=ModuleName&view=List

If everything is correct you can run a vtlib to populate. This is just a reference:

 $moduleInstance = Vtiger_Module::getInstance($MODULENAME);
 $menuInstance = Vtiger_Menu::getInstance('Tools');
 $menuInstance->addModule($moduleInstance);

or something like this:

`

$moduleInstance = Vtiger_Module::getInstance($MODULENAME);
$APPNAME = 'TOOLS';

if ($moduleInstance) {

    $adb->pquery("DELETE FROM vtiger_app2tab WHERE tabid = ?", array($moduleInstance->getId()));

    $adb->pquery(
        "INSERT INTO vtiger_app2tab (tabid, appname, sequence) SELECT * FROM (SELECT ?, ?, ?) AS tmp
        WHERE NOT EXISTS (SELECT 1 FROM vtiger_app2tab WHERE tabid = ? AND appname = ?) LIMIT 1", 
        array($moduleInstance->getId(), $APPNAME, $sequence, $moduleInstance->getId(), $APPNAME)
    );

}

`