31,014
edits
| Line 103: | Line 103: | ||
'objecttype:+tabname2:Title2:@mymodule:/mymodule/mynewtab2.php?id=__ID__', // To add another new tab identified by code tabname2 | 'objecttype:+tabname2:Title2:@mymodule:/mymodule/mynewtab2.php?id=__ID__', // To add another new tab identified by code tabname2 | ||
'objecttype:-tabname'); // To remove an existing tab identified by code tabname | 'objecttype:-tabname'); // To remove an existing tab identified by code tabname | ||
</source> | </source> | ||
The table should contain a list of strings, each string representing a new tab. | The table should contain a list of strings, each string representing a new tab. | ||
The format of the string consisting of 5 parts separated by ":" | The format of the string consisting of 5 parts separated by ":" | ||
* Part 1: The element | * Part 1: The element type (objecttype) where should the tab appears is a value from the following: | ||
** 'thirdparty' | ** 'thirdparty' to add a tab in third party view | ||
** 'intervention' | ** 'intervention' to add a tab in intervention view | ||
** ' | ** 'order_supplier' to add a tab in supplier order view | ||
** ' | ** 'invoice_supplier' to add a tab in supplier invoice view | ||
** 'invoice' | ** 'invoice' to add a tab in customer invoice view | ||
** 'order' | ** 'order' to add a tab in customer order view | ||
** 'product' | ** 'product' to add a tab in product view | ||
** 'propal' | ** 'stock' to add a tab in stock view | ||
** 'member' | ** 'propal' to add a tab in propal view | ||
** 'member' to add a tab in fundation member view | |||
** 'contract' to add a tab in contract view | |||
** 'user' to add a tab in user view | |||
** 'group' to add a tab in group view | |||
** 'contact' to add a tab in contact view | |||
** 'categories_x' to add a tab in category view (replace 'x' by type of category (0=product, 1=supplier, 2=customer, 3=member) | |||
* Part 2: A code to identify tab to add (start with +) or to remove (start with -) | * Part 2: A code to identify tab to add (start with +) or to remove (start with -) | ||
* Part 3: The title of the tab. This can be a hard read or better code translation in a file lang. | * Part 3: The title of the tab. This can be a hard read or better code translation in a file lang. | ||