31,026
edits
| Line 135: | Line 135: | ||
Function will be called before generating document to complete the array used for substitution and to replace tag myowntag with value $myvalue. You can add as many tags as you need and put all personalized code you want to define values (search into database, into files, calculation, from received parameters or from global variables)... | Function will be called before generating document to complete the array used for substitution and to replace tag myowntag with value $myvalue. You can add as many tags as you need and put all personalized code you want to define values (search into database, into files, calculation, from received parameters or from global variables)... | ||
Warning: First parameter in function parameter declaration must start with & as valu is modified by your code and must be returned modified. Moreover, function will be called only if module '''mymodule''' has been activated. | Warning: First parameter in function parameter declaration must start with & as valu is modified by your code and must be returned modified. Moreover, function will be called only if module '''mymodule''', created at first step, 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''' | ||