This editor allows you to develop DOCX and XSLX templates in a more efficient way, since you can do it all at one place.
Typical development cycle looks like this:
-
First you need to fetch a Publishing template using the Fetch tool window.
-
Navigate to the PublishingTemplate folder and open the DOCX (or XLSX) document in the folder you fetched and edit it any way you like.
-
Don’t forget to save the document and also close it. This is important, otherwise the file be locked by the MS Word or Excel application.
-
Navigate to the PublishingTemplate folder and locate template.json in the folder you fetched.
-
Select the object, e.g. Quote, by typing the name in the text field.
-
Select “Deploy template before render” to deploy your changes on the partition. Note that it overwrites the existing version (this is why it is not selected by default).
-
Click DOCX / XLSX or PDF icon to let the backend render the document. It will be saved in the “.templates_rendered” folder and opened in the corresponding application.
-
Repeat the above steps until you are happy with the rendering.
-
Delete the temporary folder “.templates_rendered” with the rendered files.
-
Optionally, click the copy icon :Icon_Copy: to copy the URL which can be used e.g. in dashboards or in a hyperlink.
You can also use this editor to change properties of the publishing template, see Set Up Publishing Templates.
See also Publishing Templates - Handbook.