Table of Contents
- 5.1. Getting started
- 5.2. Using the template editor
- 5.3. The anatomy of a simple template
- 5.4. Creating templates the easy way
- 5.5. Creating templates like a professional (HTML and CSS)
- 5.6. Creating templates like a professional (Plain Text and XML)
- 5.7. A comparison of all supported file formats
- 5.8. Placeholders reference
-
- 5.8.1. Business
- 5.8.2. Client
- 5.8.3. Invoice
- 5.8.4. Item
- 5.8.5. Payment
- 5.8.6. Deposit
- 5.8.7. Tax
- 5.8.8. Invoice Project
- 5.8.9. Time Entry
- 5.8.10. Task
- 5.8.11. Expense
- 5.8.12. Trip
- 5.8.13. Projects Report
- 5.8.14. Time Report
- 5.8.15. Tasks Report
- 5.8.16. Expenses Report
- 5.8.17. Trips Report
- 5.8.18. Sales Report
- 5.9. The qrcode FreeMarker directive (for advanced users)
- 5.10. The einvoice FreeMarker directive (for advanced users)
- 5.11. The qrbill FreeMarker directive (for advanced users)
- 5.12. The jfreechart FreeMarker directive (for advanced users)
This guide shows you how to create or edit templates that you can use to export documents like invoices.
This guide shows you how to create a template from scratch but in most cases, you won't have to do that. Almost any template can be created a lot easier using the template editor. Even our support team prefers to use the editor instead of coding templates by hand.
Fanurio can handle templates in several file formats like HTML, Microsoft Word 2007 or OpenDocument Text. However, HTML is the recommended format for templates in Fanurio. The template editor also creates HTML templates. You can find a list of all supported file formats with comments on each one of them at the end of this guide.
If you create templates in HTML or any other format, it's important that you read the template language section and the section on how to use directives in tables.
The most recommended way of creating an invoice template is to use the template editor. Even power users can do a lot of tweaks just from the editor.
Here's how to create your first template:
-
Go to
to open the template editor. -
Go through all the sections of the editor and check the fields you want to include in your template. You can configure things like your logo, the visible columns, the totals or the names of the columns.
To see how it looks like after you make some changes, click
or press F5 (Windows), Ctrl+R (Linux) or Cmd+R (Mac OS X). -
Click
to save the template to the templates folder when you're done. Later, when you'll want to export an invoice to HTML, you can use this template.
If you want to make further adjustments to the template, use the template editor and click the section that describes it.
button to open it. To learn more about the template editor, make sure you read theIf you have problems customizing or creating a template, you can always contact us for help.
Installing a template is just a matter of copying one or more files to a certain folder. Go to
to open the folder where you want to install the template. For invoice templates, use .If you are using an HTML template that uses specific fonts and images, make sure you also copy those files to the templates folder.
Fanurio uses the Apache FreeMarker template language for its templates. FreeMarker is a powerful and mature template language that can be used to create both simple and complex templates. FreeMarker can be used to generate any kind of text: HTML, XML, RTF, etc.
This guide doesn't cover all FreeMarker concepts but only those that are absolutely necessary. For a detailed guide on the FreeMarker language, go to https://freemarker.apache.org/docs/dgui.html.
Copyright © 2006-2024 Fanurio Time Tracking SRL |