General
You can find all variables that you can use here, depending on the document type:
Travel
|
Document
|
---|---|
|
|
If you want to get a deeper technology background, have a look at the Apache FreeMarker Library.
Date formatting
For example, formatting the current date:
${.now?string["dd.MM.YYYY"]} //returns 01.01.2022
${.now?string["d. MMMM YYYY"]} //returns 1. January 2022
See details about formatting
Format | Definition |
---|---|
Month |
|
M |
Month, from 1 through 12 |
MM |
Two digit month, from 01 through 12 |
MMM |
Abbreviated name of the month, for example: Jan, Feb, etc. |
MMMM |
Full name of the month, for example: January, February, etc. |
Day |
|
d |
Day of the month from 1 through 31 |
dd |
Day of the month from 01 through 31 |
ddd |
Standard abbreviation for the day of the week, for example: Mon, Tue, etc. |
dddd |
Full name of the day of the week, for example: Monday, Tuesday, etc. |
Year |
|
y |
Year from 0 to 99 |
yy |
Year from 00 to 99 |
yyy |
Year with minimum of 3 digits |
yyyy |
Year as a four digit number |
Hour |
|
h |
Hour using 12-hour clock from 1 - 12 |
hh |
Hour using 12-hour clock from 01 - 12 |
H |
Hour using 24-hour clock from 0 - 24 |
HH |
Hour using 24-hour clock from 00 - 24 |
Minute |
|
m |
Hour using 12-hour clock from 1 - 12 |
mm |
Hour using 12-hour clock from 01 - 12 |
Second |
|
s |
Second, from 0 through 59 |
ss |
Second, from 00 through 59 |
Other |
|
t |
First character of the AM/PM designator |
tt |
AM/PM designator |
T |
A literal to separate date and time in 8061 or other formats |
z |
Hours offset from UTC, with no leading zeros — Example: -5 or +530 |
zz |
Hours offset from UTC, with leading zero — Example: -05 or +0530 |
zzz |
Hours and minutes offset from UTC, with leading zeros — Example -0500 or +0530 |
g or gg |
Period or era, such as A.D. |
K |
Zone information |
Lists
If you want to repeat something, for example, all products in an offer.
[#list products as product]
// Use "product" for one product
[/#list]
Sorting
You can sort lists directly in the export, for example to display all products, sorted by the field start.
[#list products?sort_by('start') as product]
// the products get listed, sorted by "start"
[/#list]