vTiger 6 came out with a very useful and easy to use tool to create custom modules. Unfortunately, the tool is not part of the user interface, however with a very little knowledge of unix and ability to navigate using SSH connection – you will be able to create a vTiger custom module within few seconds.
Firs thing you need to do is find out how to connect to your server via SSH. For those how are using shared hosting, it is not always an option, so you should check with your hosting provider if this option is available. Assuming you have access and know how to connect, go ahead connect to the server and navigate to your vTiger directory.
The tool is located at /yourvtigercrm6/vtlib/tools/ folder, go ahead and navigate to that folder, assuming you are in your vTiger6 folder, you would just do
- cd vtlib/tools/
There is a file called “Console.php” in tools folder, to execute it do:
- php -f Console.php
And you will be presented with options to
- “Create New Module”
- “Create New Layout”
- “Create New Language Pack”
- “Test Language Pack”
We are create a vTiger custom module, so go ahead and type in ‘1‘ and hit enter.
You will receive the confirmation from the system that you are creating “>>> Module <<<” and will be asked to enter vTiger Module Name. Enter the module name and hit enter.
We are going to create “Crates” module, so we will use that as module name.
Next, you will have to enter the vTiger field name such as “Crate Name”, hit enter and the module will be created and automatically installed.
Login to your vTiger and you will see the module already installed. Use the layout editor to add custom fields and configure the module.
Hope that helps!