VTiger 6 Beta Module Creation

Lots of people who use Vtiger CRM find themselves with a need of create their own module or modify a current module.

After searching in a lot of websites and reading lots of Vtiger documents didn’t find a good and easy way to create a module in Vtiger 6 Beta like the way I’ll describe to to you in this blog wish it could help.

This way found in Vtiger CRM version 6 Beta , and here how to use it.

First open console :

– For windows : Start -> Run -> CMD

– For Linux : Shell

Then go to your Vtiger installation directory:

$Vtiger_Dir/vtlib/tools

In this directory you will find a PHP file called “console.php” just type below command to run it:

php console.php

You will get this message:

Welcome to Vtiger CRM Creator.
This tool will enable you to get started with developing extensions with ease.
Have a good time. Press CTRL+C to “quit”.
Choose the options below:
1. Create New Module.
2. Create New Layout.
3. Create New Language Pack.
4. Create Test Language Pack.
Enter your choice:

You will find lots of options for Vtiger CRM , the one we interested in is choice number one “Create New Module”.

After choosing number 1 and press enter you will get this message:

>>> MODULE <<<
Enter module name:

You have to put module name with no spaces and no special characters.

For example : productsparameters

If the module created successfully you will get a message confirm this.

This is the easy way to create Vtiger CRM module.

Lets describe what this script do exactly:

1- Created a new directory in “$Vtiger_Dir/modules” with module name you choose (productsparameters) inside this directory you will find a “productsparameters.php” this is module page and another directory “language ” which contain “en_us.lang.php ” and this is language script for your module.

2- Create two tables in database for this module:

– productsparameters

– productsparameterscf

3- Add new record in “vtiger_tab” table in Vtiger database with new module data (module name,title that will appear in vtiger,id, …….. etc).

This is a brief of what happen when you use Console.php Script.

You can also bye vtDZiner which is a useful tool to create and edit modules in Vtiger CRM.

This is the official website for it:

VTiger

Please give us your comments and opinion about this blog.

Popular Posts