31,003
edits
Tag: 2017 source edit |
Tag: 2017 source edit |
||
| Line 33: | Line 33: | ||
For instance, a customized proposal template will be located in '''...core/modules/propale/doc/''' | For instance, a customized proposal template will be located in '''...core/modules/propale/doc/''' | ||
=Create | =Create a new template = | ||
== 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 and edit it to create a new template. | ||
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 template 'azur': | ||
| Line 48: | 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 == | |||
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). | |||
=Customize content of your new template= | =Customize content of your new template= | ||