问题
I have created a module using console.php lets say 'Test'. now i want to add this 'Test' module to the sidebar under 'Sales' Application or may be as a separate Link.
Any help will be appreciated and also guide me where can i find the documentation for customizing my module.
Thanks.
回答1:
For this, update the table
- vtiger_app2tab
First find out the tab id of the newly created module and update this table.
For examle: (in vtiger_app2tab)
53 SALES 7 1
this is the database entry (new row) in table vtiger_app2tab
where tabid if your "test" module is 53.
To know your tabid for newly created module "Test" you can simply view vtiger_field
table and see the last record of newly created module. There must be fields of your newly created module as well as tabid too. This table give you the idea about what is the table name of newly created module and also tabid as well as all the fields associated with the newly created module.
After (these all) inserting new row in vtiger_app2tab
, got to the settings page>Configurations>main menu using your vtiger admin account. and then you will see your new module on SALES app under "Main Menu" configuration page and you can adjust there.
You can also use configuration panel.
来源:https://stackoverflow.com/questions/44532577/vtiger-7-add-custom-module-to-sidebar