Create an ODT or ODS document template: Difference between revisions

Line 94: Line 94:
=== Other personalized tags ===
=== Other personalized tags ===
If you want to add a field that is not predefined, this is the solution:
If you want to add a field that is not predefined, this is the solution:
* Add a file into '''htdocs/core/modules/substitutions/functions_mymodule.lib.php''' (htdocs/includes/modules/substitutions/functions_mymodule.lib.php with version 3.1 or previous)
* Add a file into '''htdocs/core/substitutions/functions_mymodule.lib.php''' (htdocs/includes/modules/substitutions/functions_mymodule.lib.php with version 3.1 or previous)
* Inside this file, just write one function like this:
* Inside this file, just write one function like this:
<source lang="php">
<source lang="php">