Create a PDF document template: Difference between revisions

Jump to navigation Jump to search
m
Tag: 2017 source edit
Tag: 2017 source edit
Line 35: Line 35:
=Create a new template =
=Create a new template =
== For an existing module ==
== For an existing module ==
Do not modify an existing template. Copy the file and edit it to create a new template.  
Do not modify an existing template. Copy the file of the template used as example into a new name in same directory than your example and edit it to change content.
For this example, we will call our new template 'mycompanyblue', based on the template 'azur':
For this example, we will call our new template 'mycompanyblue', based on the existing template 'azur':


*Copy and paste file pdf_propale_azur.modules.php
*Copy and paste file pdf_propale_azur.modules.php
Line 49: Line 49:


Add into table '''llx_document_model''' the new document template that you have created.
Add into table '''llx_document_model''' the new document template that you have created.


== For a new module ==
== For a new module ==

Navigation menu