31,003
edits
| Line 103: | Line 103: | ||
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 | 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 code which should appear in the tab is a value from the following: | ||
** 'thirdparty' | ** 'thirdparty' | ||
| Line 114: | Line 114: | ||
** 'propal' | ** 'propal' | ||
** 'member' | ** 'member' | ||
* Part 2: The title of the tab. This can be a hard read or better code translation in a file lang. | * Part 2: A code to identify tab to add (start with +) or to remove (start with -) | ||
* Part | * Part 3: The title of the tab. This can be a hard read or better code translation in a file lang. | ||
* Part | * Part 4: The name of the file. Lang which contains correspondence between the code translation and language to display. If this name start with @, Dolibarr will search translation file into the lang file of module, so htdocs/mymodule/langs/code_CODE/mymodule.lang, otherwise Dolibarr will look for file htdocs/langs/code_CODE/mymodyle.lang | ||
* Part 5: 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. | |||
To feed the contents of the tab with data from the database, see the next chapter. | To feed the contents of the tab with data from the database, see the next chapter. | ||