Create a PDF document template: Difference between revisions

m
Tag: 2017 source edit
Tag: 2017 source edit
Line 51: Line 51:


== For a new module ==
== For a new module ==
Just use the [[Module Builder]] to create your module. When entering the name of a new object to create, you can also check a checkbox to say that you want to manage documents for such new object. In such a case, two templates will be automatically generated (one ODT template and one PDF template).
Just use the [[Module Builder]] from v12.0 to create your module. When entering the name of a new object to create, you can also check a checkbox to say that you want to manage documents for such new object. In such a case, two templates will be automatically generated (one ODT template and one PDF template).
 
The templates will be generated with path:
* custom/mymodule/core/modules/doc/pdf_standard_myobject.class.php
* custom/mymodule/core/modules/doc/doc_generic_myobject_odt.class.php


=Customize content of your new template=
=Customize content of your new template=