Substitution Variables can be placed within pages in the same manner as regular text. When the content retriever finds a substitution variable while building the output for a page, the substitution variable is replaced by the value it represents. The value can be as simple as the current date or as complicated as the definition to place the contents of the events calendar within a page.
Substitution variables are often used where you might use a Java-Script or code snippet within other content management and blogging systems. Check out a suggested procedure to add the current date to a page of one of the most popular cms/blogging systems:
<?php echo date('l jS F Y'); ?>The date format can be easily formatted. More info on the date() php function here...
Now let's try {TIME_STAMP} which returns 2023/09/23 05:58:27 {MM/DD/YYYY} returns 09/23/2023
Mix in a little text: "Hello, the current day, date and time is {DDDD}, {MMMM} {d}, {YYYY} {TIME_OF_DAY}"
and the result is: "Hello, the current day, date and time is Saturday, September 23, 2023 05:58 AM"
The following is an extensive, but non-exhaustive list of Ujima substitution variables:
How many vertical columns are active for this page
1
{PAGE_TITLE}
The title of this page
ujimacms.com - Substitution Variables
{META_AUTHOR}
Meta Author
{META_DESCRIPTION}
Meta Description
{META_KEYWORDS}
Meta Keywords
{META_ROBOTS_OPTIONS}
Meta Robots Options
archive, follow, imageindex, index
{RETRIEVE_CRITERIA}
The retrieval criteria for this page
AND (Every Lanquage OR English) AND (Every Month OR September) AND (Every Day OR Day23) AND (Every Saturday OR the fourth Saturday ) AND (AllHours OR Hour5), AND (All Minutes OR Minute58) AND (Guests OR AllUsers), AND (All Screen Widths OR Screen Width 1024) AND External Users, AND Internal Users, AND Data Item Is Active
{TEMPLATE_SELECT_LIST}
Template Selection List
{LANGUAGE_SELECT_LIST}
Language Selection List
{GOOGLE_TRANSLATE}
Displays the Google Translate Selector
{TOP_TOP_MARGIN}
0
{TOP_RIGHT_MARGIN}
0
{TOP_BOTTOM_MARGIN}
0
{TOP_LEFT_MARGIN}
0
{LEFT_TOP_MARGIN}
0
{LEFT_RIGHT_MARGIN}
0
{LEFT_BOTTOM_MARGIN}
0
{LEFT_LEFT_MARGIN}
0
{CENTER_TOP_MARGIN}
0
{CENTER_RIGHT_MARGIN}
0
{CENTER_BOTTOM_MARGIN}
0
{CENTER_LEFT_MARGIN}
0
{RIGHT_TOP_MARGIN}
0
{RIGHT_RIGHT_MARGIN}
0
{RIGHT_BOTTOM_MARGIN}
0
{RIGHT_LEFT_MARGIN}
0
{BOTTOM_TOP_MARGIN}
0
{BOTTOM_RIGHT_MARGIN}
0
{BOTTOM_BOTTOM_MARGIN}
0
{BOTTOM_LEFT_MARGIN}
0
{TOP_TOP_PADDING}
0
{TOP_RIGHT_PADDING}
0
{TOP_BOTTOM_PADDING}
0
{TOP_LEFT_PADDING}
0
{LEFT_TOP_PADDING}
10
{LEFT_RIGHT_PADDING}
5
{LEFT_BOTTOM_PADDING}
20
{LEFT_LEFT_PADDING}
5
{CENTER_TOP_PADDING}
1
{CENTER_RIGHT_PADDING}
50
{CENTER_BOTTOM_PADDING}
0
{CENTER_LEFT_PADDING}
50
{RIGHT_TOP_PADDING}
0
{RIGHT_RIGHT_PADDING}
0
{RIGHT_BOTTOM_PADDING}
0
{RIGHT_LEFT_PADDING}
0
{BOTTOM_TOP_PADDING}
0
{BOTTOM_RIGHT_PADDING}
0
{BOTTOM_BOTTOM_PADDING}
0
{BOTTOM_LEFT_PADDING}
0
{TOP_TOP_BORDER}
0
{TOP_TOP_BORDER_STYLE}
none
{TOP_TOP_BORDER_COLOR}
{TOP_RIGHT_BORDER}
0
{TOP_RIGHT_BORDER_STYLE}
none
{TOP_RIGHT_BORDER_COLOR}
{TOP_BOTTOM_BORDER}
0
{TOP_BOTTOM_BORDER_STYLE}
none
{TOP_BOTTOM_BORDER_COLOR}
{TOP_LEFT_BORDER}
0
{TOP_LEFT_BORDER_STYLE}
none
{TOP_LEFT_BORDER_COLOR}
{LEFT_TOP_BORDER}
0
{LEFT_RIGHT_BORDER}
0
{LEFT_BOTTOM_BORDER}
0
{LEFT_LEFT_BORDER}
0
{CENTER_TOP_BORDER}
0
{CENTER_RIGHT_BORDER}
0
{CENTER_BOTTOM_BORDER}
0
{CENTER_LEFT_BORDER}
0
{RIGHT_TOP_BORDER}
0
{RIGHT_RIGHT_BORDER}
0
{RIGHT_BOTTOM_BORDER}
0
{RIGHT_LEFT_BORDER}
0
{BOTTOM_TOP_BORDER}
0
{BOTTOM_RIGHT_BORDER}
0
{BOTTOM_BOTTOM_BORDER}
0
{BOTTOM_LEFT_BORDER}
0
{BOTTOM_LINE_HEIGHT}
normal
{LEFT_LINE_HEIGHT}
normal
{CENTER_LINE_HEIGHT}
normal
{RIGHT_LINE_HEIGHT}
normal
{TOP_LINE_HEIGHT}
normal
Date and Time Related
{AM_PM}
am or pm
am
{MORNING_AFTERNOON_EVENING}
morning, afternoon or evening
morning
{DAY_OF_YEAR}
Day number of current year
266
{DAYS_REMAINING}
Days remaining in current year
99
{YYYY/MM/DD}
The current date as YYYY/MM/DD
2023/09/23
{MM/DDY/YYY}
The current date as MM/DD/YYYY
09/23/2023
{TIME_STAMP}
The current time as YYYY/MM/DD HH:MM:SS
2023/09/23 05:58:27
{YY}
The last two digits of the current year
23
{YYYY}
The current year as a four digit number
2023
{M}
The current month as M or MM
9
{MM}
The current month as MM
09
{MMM}
The first three characters of the current month name
Sep
{MMMM}
The full name of the current month
September
{D}
The current month day as d or dd
23
{DD}
The current month day as dd
23
{DDD}
The first three characters of the current week day name