Module development: Difference between revisions

Jump to navigation Jump to search
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
// where objecttype can be
// 'thirdparty'      to add a tab in third party view
// 'intervention'    to add a tab in intervention view
// 'supplier_order'  to add a tab in supplier order view
// 'supplier_invoice' to add a tab in supplier invoice view
// 'invoice'          to add a tab in customer invoice view
// 'order'            to add a tab in customer order view
// 'product'          to add a tab in product view
// 'propal'          to add a tab in proposal view
// 'member'          to add a tab in foundation member view
</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 code which should appear in the tab is a value from the following:
* 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
** 'supplier_order'
** 'order_supplier' to add a tab in supplier order view
** 'supplier_invoice'
** '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.

Navigation menu