Hi,
I tried to use your explanation to add the import function to the ModuleBuilder, but I don't get the import option. Maybe you see what I did wrong:

Originally Posted by
crmsiva
Hi All
Add the below line in modules/<Module Name>/<Module Name>.php file.
Code:
var $importable = true;
the file modules/ModuleBuilder/ModuleBuilder.php does not exist, instead there is a subdirectory called MB where this file is located.
Here is how this file now looks like:
Code:
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
require_once ('include/utils/file_utils.php') ;
define ( 'MB_PACKAGE_PATH', 'custom/modulebuilder/packages' ) ;
define ( 'MB_PACKAGE_BUILD', 'custom/modulebuilder/builds' ) ;
require_once ('modules/ModuleBuilder/MB/MBPackage.php') ;
class ModuleBuilder
{
var $packages = array ( ) ;
var $importable = true;
function getPackageList ()
.... 
Originally Posted by
crmsiva
Create the file menu.ext.php in "custom\modules\<Module Name>\Ext\Menus" with below code.
Here is my code:
Code:
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
if(ACLController::checkAccess('ModuleBuilder', 'import', true)) $module_menu[]=Array("index.php?module=Import&action=Step1&import_module=ModuleBuilder&return_module=ModuleBuilder&return_action=index", "Import","Import", 'ModuleBuilder');
?> Any idea what I did wrong?
Thanks for your help.
Stefan
Bookmarks