Smarty Syntax for Forms

Travelmanager Team
May 15, 2026
2 min read
Travelmanager

Smarty Syntax for Forms

Templates for PDF printouts and email forms are stored in the form editor under System > Documents.

The placeholders visible in the database view are rendered using Smarty syntax. This makes it possible to create flexible templates with dynamic content.

Variables and Placeholders

All variables are listed in the database view with a content preview. You can use these variables in the template to display dynamic content.

Travelmanager Smarty Functions

Travelmanager provides additional Smarty functions that can be used in templates:

  • DblToC: Outputs a numeric value as a currency value, for example {2.03|DblToC} returns 2,03.
  • CToDbl: Converts a formatted value into a number, for example {"2,03"|CToDbl} returns 2.03.
  • ZeitAnzeige: Converts a number into a readable time, for example {930|ZeitAnzeige} returns 09:30.
  • cutTextFahrplanausgabe: Shortens text from a defined length, for example {"ABCDEF"|cutTextFahrplanausgabe:2} returns AB....
  • generateQRCode: Creates an encrypted QR code using the booking number as the code.
{$reservierung_id|generateQRCode:$vorgang_nr}

Printing Tickets and Receipts

To print a ticket and a receipt on two different printers during a ticket sale:

  1. Create the templates for the ticket and receipt.
  2. Configure the templates under System parameters > Printers.
  3. Configure the printers for the relevant point of sale under System parameters > Point of sale.
Last updated on May 15, 2026