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

Related Items
 Loading ...
Copyright © 2018 . All Rights Reserved