Create an ODT or ODS document template: Difference between revisions

Jump to navigation Jump to search
Line 137: Line 137:


Note: With 3.2 and higher, if you have build your own module (See page [[Module development]]), you can put the substitution file inside a subdirectory of this module called htdocs/mymodule/core/substitutions.
Note: With 3.2 and higher, if you have build your own module (See page [[Module development]]), you can put the substitution file inside a subdirectory of this module called htdocs/mymodule/core/substitutions.
Moreover, function will be called only if module '''mymodule''' contains an entry $this->module_parts = array('substitutions' => 1) and module has been activated.
Moreover, function will be called only if module '''mymodule''' contains an entry  
<source lang="php">
$this->module_parts = array('substitutions' => 1)  
</source>
and module has been activated.


== Store your document ==
== Store your document ==
To have your document to appear in list of available documents, put it into correct subdirectory found into
To have your document to appear in list of available documents, put it into correct subdirectory found into
directory '''documents/doctemplates'''
directory '''documents/doctemplates'''

Navigation menu