Text Variables
Published:
12 Oct 2016, last updated 12 Oct 2016
Introduction
This article explains what Text Variables are, how they may be used, and what variables are available.
What is a Text Variable?
A text variable is a keyword which when used in a content item's body causes specific data to be displayed when the item is viewed.
For example, if the variable 09 Dec 2023 01:40 is placed in an item's body, every time the content item is requested, the text '$date_time' will be replaced with the server's current date and time.
Current Text Variables
Variable |
Data |
Notes |
09 Dec 2023 01:40 |
Current server date and time in Camino standard notation. |
For example: 23 May 2016 21:45 |
09 Dec 2023 |
Current server date in Camino standard notation. |
For example: 23 May 2016 |
01:40 |
Current server time in Camino standard otation |
For example: 21:45 |
$user_displayname$ |
The 'Display Name' of the currently logged in user account. |
If no active session, 'Guest' is returned |
$user_email$ |
The registered email address of the currently logged in user account. |
If no active session, then an empty string is returned. |
Calzada Media |
The name of the website. |
This is the value configured in Administrator > Control Panel > Settings |
Calzada Media |
The defined name of the website publisher |
This is the value configured in Administrator > Control Panel > Settings |
$site_publisher_address$ |
The defined postal address of the website publisher. |
This is the value configured in Administrator > Control Panel > Settings. If not defined, an empty string is returned. |
Custom Text Variables
It is currently not possible to define custom text variables. This functionality is due to be included in a future version of Camino.