31,003
edits
mNo edit summary |
|||
| Line 82: | Line 82: | ||
<source lang="php"> | <source lang="php"> | ||
// Array to add new pages in new tabs | // Array to add new pages in new tabs | ||
$this->tabs = array('product: | $this->tabs = array('product:TabTitle:@mymodule:/mymodule/mynewpage.php?id=__ID__'); | ||
// where entity can be | // where entity can be | ||
// 'thirdparty' to add a tab in third party view | // 'thirdparty' to add a tab in third party view | ||
| Line 108: | Line 108: | ||
** '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: The title of the tab. This can be a hard read or better code translation in a file lang. | ||
* Part 3: The name of the file. Lang which contains correspondence between the code translation and language to display. | * Part 3: 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 4: 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 entity concerned. | * Part 4: 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 entity concerned. | ||