Help: Calendar View Day Template Variables

For more help, visit the WebGUI Community Wiki.

This template shows all events in a single day in the calendar, sorted by hour.

hours
This loop contains all the events and labels for the hours that they occur in. Hours with no events will not be placed into the loop.
hour12
The hour in 12 hour format. 2:00 in the afternoon will be 2:00.
hour24
The hour in 24 hour format. 2:00 in the afternoon will be 14:00.
hourM
Depending on whether the hour occurs in the morning or afternoon, either the strings "am" or "pm"
events
This loop contains all the events for this hour.
pageNextStart
The date of the next day in the calendar in YYYY-MM-DD (Year, Month, Day) format.
pageNextUrl
A URL to the next day in the calendar.
pagePrevStart
The date of the previous day in the calendar in YYYY-MM-DD (Year, Month, Day) format.
pagePrevUrl
A URL to the previous day in the calendar.
dayName
The name of the current day.
dayAbbr
The abbreviation for the name of the current day.
dayOfMonth
Which day of the month this day is, an integer from 1..31.
dayOfWeek
Which day of the week this day is, an integer from 1..7.
monthName
The name of this month.
monthAbbr
The abbreviation of the name for this month.
year
The 4 digit year.
ymd
This day's date in yyyy-mm-dd format, where yyyy is the year, mm is the month and dd is the day.
mdy
This day's date in mm-dd-yyyy format, where yyyy is the year, mm is the month and dd is the day.
dmy
This day's date in dd-mm-yyyy format, where yyyy is the year, mm is the month and dd is the day.
epoch
This day's date in epoch format.
admin
A conditional that will be true if the user has Admin mode turned on.
adminControls
These are the icons and URLs that allow editing, cutting, copying, deleting and reordering the Asset.
editor
A conditional that will be true if the user is in the group allowed to edit events in the calendar.
urlAdd
A URL to add an event to the calendar.
urlDay
A URL to the 1 day view of the calendar.
urlWeek
A URL to the week view of the calendar.
urlMonth
A URL to the month view of the calendar.
urlSearch
A URL to the search form for the calendar.
urlPrint
A URL to the printable view of the calendar.
urlIcal
A URL to the iCal feed for the calendar, starting at this month.
paramStart
The starting date of the calendar.
paramType
The current view of the calendar, one of the strings "day", "week", "month".
extrasUrl
A URL to the WebGUI extras directory.
webgui.version
The version of WebGUI on your site.
webgui.status
The release status for this version of WebGUI (stable, beta, gamma, etc.)
session.user.username
The current user's username.
session.user.firstDayOfWeek
From the current user's profile, the day they selected to be the first day of the week.
session.config.extrasurl
From the WebGUI config, the URL for the extras directory.
session.var.adminOn
This variable will be true if the user is in Admin mode.
session.setting.companyName
From the WebGUI settings, the company name.
session.setting.anonymousRegistration
From the WebGUI settings, whether or not anonymous registration has been enabled.
session form variables
Session Form Variables
Any form variables will be available in the template with this syntax:
<tmpl_var session.form.variable>
If there is more than 1 value in a form variable, only the last will be returned.
session scratch variables
Session Scratch Variables
Any scratch variables will be available in the template with this syntax:
<tmpl_var session.scratch.variable>
controls
These are the icons and URLs that allow editing, cutting, copying, deleting and reordering the Asset.
 
 
Admin Console
Help: Calendar View Day Template Variables
*
Admin Console