Octibiz
Demo

Durchsucht Website und Dokumentation gemeinsam. Enter zeigt alle Treffer, Esc schließt.

Document templates

Document templates screen in Octibiz

Overview

Document templates govern how a PDF looks — quote, invoice, delivery note and everything else. A template applies per document type, brand and language.

Two ways of editing are available: Visual for the normal case and Twig for templates that demand more than an interface can express. Both edit the same template; the mode is shown in the list.

Everything here is changeable without a release. A layout request is not a development job.

Core tasks

Create a template. New template requires document type, brand and language. The list can be filtered by document type and brand.

Use the fallback principle. As with mail templates: a template without a brand is the global edition for every brand; a template with a brand beats it there. Maintain one global edition and create brand editions only where things genuinely differ.

Activate. Only active templates are used. That lets you prepare a new edition and switch over only once it has been checked.

Fields in detail

FieldRequiredValues / formatWhat it does
Document type docTypeyesinvoice, quote, order, delivery note …Which document the template applies to.
Brand brandIdnoone of your brandsFor which brand. A brand-specific template beats the general one.
Language localenolanguage code, max. 10 charactersFor which language. That way an English customer gets an English layout, not merely translated field content.
Customer group customerGroupIdnoan existing customer groupWhich customer group the template applies to. Empty = all of them. Selection always takes the more specific template before falling back to the brand's.
Sales channel salesChannelIdnoan existing sales channelWhich sales channel the template applies to — that way a marketplace document can look different from a direct one. Empty = all of them.
Name nameyestext, max. 120 charactersWhat the template is called in the selection.
Editing mode editorModenovisual or template languageHow the template is maintained. The visual route suffices almost always; the template language is for cases blocks cannot express — it demands care, because an error makes the document unproducible.
Blocks blockswith "visual"list of blocksHeader, address field, items, totals, footer — and the Swiss QR bill payment part (qrBill): receipt and payment part on a separate last page, only on invoices in CHF or EUR and only when the brand has switched it on (see Brands).
Body bodywith "template language"textThe template as source.
Background PDF backgroundPdfFileIdnoPDF fileStationery printed over. The usual route when your paper is already designed.
Logos logosnoimage filesThe template's logos.
Default isDefaultnoyes/noWhich template is used when none is chosen on the document.
Active activenoyes/noOff means no longer selectable. Documents already produced keep their appearance — a document is a product, not a view of the template.

Below the template list lies the one catalogue of reusable document texts — for quote, order, invoice and delivery note. Do not confuse it with the cover texts of the dispatch email: those appear in the email, these on the document itself. The quote text blocks of earlier versions have been moved here.

FieldRequiredValues / formatWhat it does
Name nameyestext, max. 150 charactersHow the block is named in the selection on the document.
Kind categoryyesheader text or footer textWhether the block goes above the line items or below the total.
Document type documentTypenoquote, order, invoice, delivery note — empty for allFor which document type the block is offered. A block without document type is available to every type.
Content contentnoformatted textThe text itself. Active content (scripts) is removed on save.
Brand brandIdnoone of your brandsFor which brand. Empty = for all brands.
Default isDefaultnoyes/noInserted automatically in new documents of this type. There is at most one default per kind, document type and brand; a new one replaces the old. The lookup goes from specific to general: document type and brand, then document type, then all document types with brand, then all.
Active activenoyes/noOff means: no longer selectable on the document. Texts already inserted stay on the document.
Order sortOrdernonumberOrder in the selection.

Settings & permissions

  • Permission platform.settings.manage. Without it the page is unreachable.
  • No PDF engine, no document. PDF generation is a separate part of the installation. If it is

missing, no document is produced — that is not a template question and belongs with your administrator.

  • Issued documents do not change retroactively. A template change affects future generations.
  • Numbers come from elsewhere. The document number comes from the

number schemes, not from the template.

FAQ & troubleshooting

The document is not generated. First check whether an active template exists for the combination of document type, brand and language. If it persists, the installation's PDF generation is the cause.

The document carries the wrong logo. The logo comes from the brand, not from the template.

A change does not show on an old document. By design: a generated document is a document, not a window onto the current template.

Visual editing is not enough. Then the Twig mode is the route. It does, however, require knowledge of the template language — otherwise the mistake surfaces at the customer's end.

settings.document-templates · Available from version 0.5.0