Module development: Difference between revisions

Jump to navigation Jump to search
m
Line 114: Line 114:
* 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. 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 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 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.

Navigation menu