304
edits
| Line 92: | Line 92: | ||
== The tab management (optional) == | == The tab management (optional) == | ||
=== Add or | === Add or remove your own tabs on object sheets === | ||
'''When''': To add a tab on an object (invoices, orders, proposals, member ...) | '''When''': To add a tab on an object (invoices, orders, proposals, member ...) | ||
| Line 106: | Line 106: | ||
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 type (objecttype) where | * Part 1: The element type (objecttype) where the tab should appear is a value from the following: | ||
{{TemplateModuleTabs}} | {{TemplateModuleTabs}} | ||
* 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. | ||
* Part 4: The name of the file. | * Part 4: The name of the file "*.lang" which contains correspondence between the code translation and language to display. If this name is followed with @mymodule, Dolibarr will search translation file "*.lang" within the module, so htdocs/mymodule/langs/code_CODE/mylangfile.lang, otherwise Dolibarr will look for file htdocs/langs/code_CODE/mylangfile.lang | ||
* Part 5: A condition to test if tab must be visible. Put 1 to be always visible. | * Part 5: A condition to test if tab must be visible. Put 1 to be always visible. | ||
* Part 6: The url of the page to display when you click on the tab. The __ID__ string will be replaced automatically by the Id of the element concerned. | * Part 6: The url of the page to display when you click on the tab. The __ID__ string will be replaced automatically by the Id of the element concerned. | ||
edits