This website uses cookies. Accept Cookies Find out more

Text Variables

Article Id:
KB285
Published:
12 Oct 2016, last updated 12 Oct 2016 14:51

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 $date_time$ 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
$date_time$ Current server date and time in Camino standard notation. For example: 23 May 2016 21:45
$date$ Current server date in Camino standard notation. For example: 23 May 2016
$time$ 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.
$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
$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.

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