Functional description
Difficulty level:
General variables
The variables below are 'General' variables for use in templates. They are available in every context and in every template type.
| Variable | Description | Example |
|---|---|---|
| {DATE_CURRENT} | Current date, in standard date format | 12 juni 2013 |
| {TIME_CURRENT} | Current time, in standard time format | 10:00 |
| {YEAR_CURRENT} | Current year, four digits | 2013 |
| {MONTH_CURRENT} | Current month, two digits | 06 |
| {DAY_CURRENT} | Current day of the month, two digits | 12 |
| {DATE_LONGDATE_CURRENT} | Current date in the environment’s long date format | woensdag 12 juni 2013 |
| {DATE_SHORTDATE_CURRENT} | Current date in the environment’s short date format | 12-06-2013 |
| {DATETIME_CURRENT} | Current date and time in the environment’s date-time format | 12-06-2013 10:00 |
| {SITE_URL} | The base URL of the current environment. | https://demo.i-reserve.com/ |
| {COMPANYNAME} | Company name, from general settings. Not to be confused with the customer’s company name. | DEMO environment |
| {TEMPLATE_LOGO} | The full URL of the template logo. Meant to be used as the src of an image: <img src="{TEMPLATE_LOGO}" />. The variable stays empty as long as no template logo has been uploaded, or when the file of the configured logo no longer exists. Upload the logo under Settings → i-Reserve settings → Template logo. Note: the template logo is separate from the admin logo — an admin logo does not fill this variable. |
https://demo.i-reserve.com/admin?mod=downloadfile&task=showImage&document_id=1234 |
| {WELCOME_MSG} | Welcome text, from general settings. | Dear customer, |
| {EMAIL_SIG} | Email signature, from general settings. | Kind regards, DEMO environment |
| {!PAGEBREAK!} | Only applicable for PDFs. Ensures that all content after this tag is printed on the next page. |
|
| {S_DETAIL} | A control variable to indicate whether the price field is populated | True / False |
| {S_COMBIDETAIL} | A control variable to indicate whether the arrangements table is populated | |
| {S_ADDITIONALDETAIL} | A control variable to indicate whether the recurring reservations table is populated | |
| {S_SERIESDETAIL} | A control variable to indicate whether the series bookings table is populated | |
| {S_PARTICIPANTS} | A control variable to indicate whether the participants table is populated | |
| {S_OPTIONS} | A control variable to indicate whether the options table is populated | |
| {S_PAYMENTS} | A control variable to indicate whether the payments table is populated | |
| {S_QUESTIONS} | A control variable to indicate whether the questions table is populated | |
| {S_COMPANY} | A control variable to indicate whether a company is linked to the item | |
| {USER_INITIALS} | Initials of the logged-in user | J. |
| {USER_PREFIX} | Name prefix of the logged-in user | van der |
| {USER_LASTNAME} | Last name of the logged-in user | Berg |
| {USER_SEX} | Gender of the logged-in user | M |
| {USER_NUMBER} | User number of the logged-in user | 42 |
| {USER_REMARKS} | Remarks on the logged-in user | |
| {USER_SIG} | Personal signature of the logged-in user. When it is empty — or when the message is not sent from a logged-in session — the variable falls back to the general email signature. | Kind regards, |
| {USER_FULLNAME} | Full name of the logged-in user, composed of gender, initials, prefix and last name according to the language’s name format | J. van der Berg |


