Help: Event Common Template Variables

For more help, visit the WebGUI Community Wiki.

These template variables are used by both the Event and the Calendar.

canEdit
This variable is true if the current user can edit this event.
isPublic
A conditional that will be true if the group to view this Event is Everyone.
groupToView
The ID of the Group that is allowed to view this event.
startDateSecond
The second, formatted to two digits with leading zeroes, that this event starts.
startDateMinute
The minute, formatted to two digits with leading zeroes, that this event starts.
startDateHour24
The hour, on a 24 hour clock, that this event starts.
startDateHour
The hour that this event starts.
startDateHourM
Depending on whether the event occurs in the morning or afternoon, either the strings "am" or "pm"
startDateDayName
The name of the day the Event starts.
startDateDayAbbr
The abbreviation of the name of the day the Event starts.
startDateDayOfMonth
The day of the month this Event starts, a number from 1 to 31.
startDateDayOfWeek
The day of the week this Event starts, a number from 1 to 7.
startDateMonthName
The name of the month this Event starts.
startDateMonthAbbr
The abbreviation of the name of the month this Event starts.
startDateYear
The year this Event starts, with 4 digits.
startDateYmd
This Event's start date in yyyy-mm-dd format, where yyyy is the year, mm is the month and dd is the day.
startDateMdy
This Event's start date in mm-dd-yyyy format, where yyyy is the year, mm is the month and dd is the day.
startDateDmy
This Event's start date in dd-mm-yyyy format, where yyyy is the year, mm is the month and dd is the day.
startDateHms
This Event's start time in hh:mm:ss format, where hh is the hour, mm is the minute and ss is the second.
startDateEpoch
This Event's start date and time in epoch format.
endDateSecond
The second, formatted to two digits with leading zeroes, that this event ends.
endDateMinute
The minute, formatted to two digits with leading zeroes, that this event ends.
endDateHour24
The hour, on a 24 hour clock, that this event ends.
endDateHour
The hour that this event ends.
endDateHourM
Depending on whether the event occurs in the morning or afternoon, either the strings "am" or "pm"
endDateDayName
The name of the day the Event ends.
endDateDayAbbr
The abbreviation of the name of the day the Event ends.
endDateDayOfMonth
The day of the month this Event ends, a number from 1 to 31.
endDateDayOfWeek
The day of the week this Event ends, a number from 1 to 7.
endDateMonthName
The name of the month this Event ends.
endDateMonthAbbr
The abbreviation of the name of the month this Event ends.
endDateYear
The year this Event ends, with 4 digits.
endDateYmd
This Event's end date in yyyy-mm-dd format, where yyyy is the year, mm is the month and dd is the day.
endDateMdy
This Event's end date in mm-dd-yyyy format, where yyyy is the year, mm is the month and dd is the day.
endDateDmy
This Event's end date in dd-mm-yyyy format, where yyyy is the year, mm is the month and dd is the day.
endDateHms
This Event's end time in hh:mm:ss format, where hh is the hour, mm is the minute and ss is the second.
endDateEpoch
This Event's end date and time in epoch format.
isAllDay
A conditional that is true is this Event has been set to be all day long.
isOneDay
A conditional that is true is this Event starts and ends on the same day.
dateSpan
A friendly display of this Event's start and end dates and times.
url
The URL for this Event.
urlDay
A URL to show all Events on the same day in this Event's Calendar.
urlList
A URL to show Events as a list, rather than a calendar.
urlWeek
A URL to show all Events on the same week in this Event's Calendar.
urlMonth
A URL to show all Events on the same month in this Event's Calendar.
urlParent
A URL to the Calendar that contains this Event.
urlSearch
A URL to the Search form for the Calendar that contains this Event.
urlEdit
A URL to edit this Event.
urlPrint
A URL to render this Event with its template for printing.
urlDelete
A URL to delete this Event.
image.url
The URL to the first image attached to the Post.
image.thumbnail
A thumbnail for the image attached to the Post.
attachment.url
The URL to download the first attachment attached to the Post.
attachment.icon
An icon showing the file type of this attachment.
attachment.name
The name of the first attachment found on the Post.
attachment_loop
A loop containing all file and image attachments to this Post.
url
The URL to download this attachment.
icon
The icon representing the file type of this attachment.
filename
The name of this attachment.
thumbnail
A thumbnail of this attachment, if applicable.
isImage
A conditional indicating whether this attachment is an image.
 
 
Admin Console
Help: Event Common Template Variables
*
Admin Console