Changes

m
Line 2: Line 2:  
<!-- You can edit this section but do NOT remove these comments
 
<!-- You can edit this section but do NOT remove these comments
 
     Links below will be automatically replicated on translated pages by PolyglotBot -->
 
     Links below will be automatically replicated on translated pages by PolyglotBot -->
[[fr:Créer_un_modèle_de_document_ODT]]
+
[[fr:Créer_un_modèle_de_document_ODT_ou_ODS]]
[[es:Crear_un_modelo_de_documento_ODT]]
+
[[es:Crear_un_modelo_de_documento_ODT_o_ODS]]
 
[[de:Erstellen einer ODT-Dokumentvorlage]]
 
[[de:Erstellen einer ODT-Dokumentvorlage]]
 
<!-- END interlang links -->
 
<!-- END interlang links -->
Line 12: Line 12:  
To know how to build a PDF template, see page [[Create a PDF document template]]. Building a PDF template require PHP development knowledge, but not building an ODT or ODS template.
 
To know how to build a PDF template, see page [[Create a PDF document template]]. Building a PDF template require PHP development knowledge, but not building an ODT or ODS template.
   −
* ODT is the format of documents generated by LibreOffice Writer for example.
+
* ODT is the format of documents generated by LibreOffice Writer for example (the mostly used case for document generation).
 
* ODS is the format of documents generated by LibreOffice Calc for example.
 
* ODS is the format of documents generated by LibreOffice Calc for example.
 
You can you both of them to generated a templatethat can be used by Dolubarr...
 
You can you both of them to generated a templatethat can be used by Dolubarr...
Line 23: Line 23:  
==Create your document==
 
==Create your document==
   −
*Create from scratch an empty OpenOffice document and take a provided example. You may find them installed into a subdirectory of directory '''documents/doctemplates'''
+
*Create from scratch an empty OpenOffice document and take a provided example. You may find them installed into a sub-directory of directory '''documents/doctemplates'''
 
*Edit your document using all your Office suite features.
 
*Edit your document using all your Office suite features.
    
Include in your document the tags you want to see. Tags will be replaced during generation of document automatically by Dolibarr. List of all available tags are provided in next chapter.
 
Include in your document the tags you want to see. Tags will be replaced during generation of document automatically by Dolibarr. List of all available tags are provided in next chapter.
   −
[[File:Warning.png]] <span style="color:#FE0000">'''Warning, tags must be rounded with {} or [] for arrays (see later) and must be typed with no stop using Office suite (with no backspace and no copy-paste). If not doing that, Office suite adds some invisible information makes detection/replacement impossible. With LibreOffice you can also use the Ctrl+M to remove direct formatting from Tags'''</span>
+
[[File:Warning.png]] <span style="color:#FE0000">'''Warning, tags must be rounded with {} or [] for arrays (see later) and must be typed with no stop using Office suite (with no backspace and no copy-paste). If not doing that, Office suite adds some invisible information that makes detection and replacement impossible. With LibreOffice you can also use the Ctrl+M to remove direct formatting from Tags'''</span>
   −
==Tags==
+
==Tags for substitution variables==
 
This is a list of tags that will be replaced with your informations:
 
This is a list of tags that will be replaced with your informations:
   Line 195: Line 195:     
==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 see your document template appear in the list of available templates by going to the module configuration. In the ODT/ODS Template section, there is a small form to upload the template. It is also possible to place the file manually in the appropriate subdirectory located in the '''documents/doctemplates''' directory
directory '''documents/doctemplates'''