Table of Contents
- 4.1. Getting started
- 4.2. Using the template editor
- 4.3. The anatomy of a simple template
- 4.4. Charts (for advanced users)
- 4.4.1. The jfreechart directive
- 4.4.2. Chart types
- 22.214.171.124. Area charts
- 126.96.36.199. Bar charts
- 188.8.131.52. Line charts
- 184.108.40.206. Pie charts
- 4.4.3. Chart properties
- 4.5. Creating templates the easy way
- 4.6. Creating templates like a professional (HTML and CSS)
- 4.7. Creating templates like a professional (Plain Text and XML)
- 4.8. A comparison of all supported file formats
- 4.9. Placeholders reference
- 4.9.1. Business
- 4.9.2. Client
- 4.9.3. Invoice
- 4.9.4. Item
- 4.9.5. Payment
- 4.9.6. Deposit
- 4.9.7. Tax
- 4.9.8. Invoice Project
- 4.9.9. Time Entry
- 4.9.10. Task
- 4.9.11. Expense
- 4.9.12. Trip
- 4.9.13. Person
- 4.9.14. Projects Report
- 4.9.15. Time Report
- 4.9.16. Tasks Report
- 4.9.17. Expenses Report
- 4.9.18. Trips Report
- 4.9.19. Sales Report
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.
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 toto 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, clickor press F5 (Windows), Ctrl+R (Linux) or Cmd+R (Mac OS X).
Clickto 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 the
If 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 toto 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 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 http://freemarker.sourceforge.net/docs/dgui.html.
Copyright © 2006-2017 Fanurio Time Tracking SRL