This website uses cookies We use cookies on this website to provide services, features and to analyze our traffic. You consent to our cookies if you continue to use our website. Accept Cookies Find out more

Text Variables

KB285 Last reviewed 12 October 2016
This article explains what Text Variables are, how they may be used, and what variables are available.

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 20 Jul 2018 02:07 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
20 Jul 2018 02:07 Current server date and time in Camino standard notation. For example: 23 May 2016 21:45
20 Jul 2018 Current server date in Camino standard notation. For example: 23 May 2016
02:07 Current server time in Camino standard otation For example: 21:45
guest The 'Display Name' of the currently logged in user account. If no active session, 'Guest' is returned
The registered email address of the currently logged in user account. If no active session, then an empty string is returned.
$site_name$ The name of the website. This is the value configured in Administrator > Control Panel > Settings
$site_publisher$ The defined name of the website publisher This is the value configured in Administrator > Control Panel > Settings
2 Mars Drive
Wellingborough
Northamptonshire
NN8 1RJ
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.

3
 Loading ...
Copyright © 2011 - 2017 Calzada Media Limited. All Rights Reserved.