Create a custom module in Sugarcrm
It is very easy and time saving if we use in-built tool Studio to build modules in Sugarcrm. However, creating custom modules is always fun in Sugar. Especially, if you are a developer and want to build the module from scratch. One advantage of this is that you will always know where your files are and how the controls are flowing.
let’s begin with creating a custom module called Smartphones!
Before creating a custom module, the developer should know the basic fundamentals of Sugar folders. We are going to create a simple custom module so, we do not expect it to work fully functional. We can further customize it in next posts.
Steps:
- Create following folders and files inside module directory.
/sugarcrm/modules/Smartphones
/sugarcrm/modules/language
/sugarcrm/modules/Forms.php
/sugarcrm/modules/index.php
/sugarcrm/modules/language/en_us.lang.php - Type following line inside /sugarcrm/include/modules.php
$moduleList[] = ‘smartphones’; - Inside /sugarcrm/custom/include/language/en_us.lang.php type the following lines of code
$app_list_strings[‘moduleList’][‘smartphones’] = ‘Smartphone’;
$app_list_strings[‘moduleListSingular’][‘smartphones’] = ‘Smartphones’; - Go to Admin section
- Go to Repair in System section
- Choose Quick Repair and Rebuild
Step 4 to 6 are optional. - Go to Display Moudules and Subpanels of Admin->Developer Tools
You will see your custom module name inside Hiddent Modules - Drag that module to the left section as per your preference
- Click on Save button.
The custom module is set. You should see on your navigation bar.
About SugarCRM
If you are not yet familiar with SugarCRM click on the logo.
![]()