Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Events Core Module - Available Template Tokens

Return to previous page

  • 4/7/2015
  • 7071 Views

Comments

7071 Views

Events Core Module - Available Template Tokens

Last updated long time ago

Comments

Common

(Enter the content of this article below)

Advanced

 
This information pertains to the DNN Events Module.

You can find these in the Template Settings section of the module settings, and click the Template Help link. As at version 5.1.5 the following are the current tokens

Tokenname Description
[event:title] Event title and the sub calendar modulename when defined in settings
[event:eventimage]§ Image when one is associated with the event
[event:imageurl]§ URL of the event image when one is associated with the event
[event:startdatelabel] Label defined for start date in the resource file
[event:startdate|format] Start date formatted (optional) by the format string *
[event:enddatelabel] Label defined for end date in the resource file
[event:enddate|format] End date formatted (optional) by the format string *
[event:timezone] Timezone description
[event:importancelabel]§ Label defined for importance in the resource file
[event:importance]§ Importance with icon (for low and high importance)
[event:importanceicon]§ Importance Icon
[event:descriptionlabel] Label defined for description in the resource file
[event:description|length] Description defined in the event, optionally shortened to specified length
[event:categorylabel] Label defined for category in the resource file
[event:category] Category associated with the event
[event:locationlabel] Label defined for location in the resource file
[event:location] Location associated with the event
[event:locationname] Name of location associated with the event
[event:locationurl] URL of location associated with the event
[event:recurringlabel]§ Label defined for recurrence in the resource file
[event:recurring]§ Recurrence defined in the event
[event:recurringicon]§ Recurrence Icon
[event:customfield1label] Label defined for custom field 1 in the resource file
[event:customfield1] Custom field 1 defined in the event
[event:customfield2label] Label defined for custom field 2 in the resource file
[event:customfield2] Custom field 2 defined in the event
[event:customfield3label] Label defined for custom field 3 in the resource file
[event:customfield3] Custom field 3 defined in the event
[event:titleurl]§ HREF to the event detail page including title
[event:eventurl]§ URL to the event detail page
[event:createdbylabel]§ Label defined for created by in the resource file
[event:createdby]§ Name of user the event was Created By
[event:createdbyid]§ Userid of user the event was Created By
[event:createdbyurl]§ URL of the profile of user the event was Created By
[event:createdbyprofile]§ Link to the profile of user the event was Created By
[event:createddatelabel] Label defined for created date in the resource file
[event:createddate|format] Date the event was created
[event:ownedbylabel] Label defined for owned by in the resource file
[event:ownedby]§ Name of user the event is Owned By
[event:ownedbyid]§ Userid of user the event is Owned By
[event:ownedbyurl]§ URL of the profile of user the event is Owned By
[event:ownedbyprofile]§ Link to the profile of user the event is Owned By
[event:lastupdatedbylabel]§ Label defined for last updated by in the resource file
[event:lastupdatedby]§ Name of user the event was Last Updated By
[event:lastupdatedbyid]§ Userid of user the event was Last Updated By
[event:lastupdatedbyurl]§ URL of the profile of user the event was Last Updated By
[event:lastupdatedbyprofile]§ Link to the profile of user the event was Last Updated By
[event:lastupdateddatelabel] Label defined for last updated date in the resource file
[event:lastupdateddate|format] Date the event was last updated
[event:alldayeventtext] Label used for an All Day Event - e.g. '(All Day)'
[event:maxenrollmentslabel] Label of Max Enrolments
[event:maxenrollments] Maximum number of enrolments for the event
[event:noenrollmentslabel] Label of No. Enrolments
[event:noenrollments] Number of people currently enroled for the event
[event:enrollfeelabel]§ Label of Enrolment Fee
[event:enrollfee]§ Enrolment fee including currency
[event:enrollicon]§ Enrolment Icon
[event:reminderlabel]§ Label of Notification
[event:reminder]§ Notification information
[event:remindericon]§ Notification Icon
Only available in enrolment emails
[event:signupusername] Name of user enrolled to an event
[event:signupuserid Userid of user enrolled to an event
[event:signupdatelabel] Label defined for start date in the resource file
[event:signupdate|format] Start date formatted (optional) by the format string *
[event:noenroleeslabel] Label of number of people enroled by this user
[event:noenrolees] Number of people enroled by this user
§ - These tokens are not available in Event Reminders when running in Medium Trust
* - See section below for date formatting advice

Other Tokens

The following tokens can be used to alter what is displayed based on options stored in the database:-
Token Description Example
ALLDAYEVENT Includes the text specified within the token if the event is an All Day Event. [ALLDAYEVENT][event:startdate|D][/ALLDAYEVENT]
NOTALLDAYEVENT Includes the text specified within the token if the event is not an All Day Event. [NOTALLDAYEVENT][event:startdate][/NOTALLDAYEVENT]
DISPLAYENDDATE Includes the text specified within the token if Display End Date is selected. [DISPLAYENDDATE][event:enddate][/DISPLAYENDDATE]
DISPLAYCUSTOMFIELD1 Includes the text specified within the token if Custom Field 1 is enabled. [DISPLAYCUSTOMFIELD1][event:customfield1][/DISPLAYCUSTOMFIELD1]
DISPLAYCUSTOMFIELD2 Includes the text specified within the token if Custom Field 2 is enabled. [DISPLAYCUSTOMFIELD2][event:customfield1][/DISPLAYCUSTOMFIELD2]
IFHASIMAGE Includes the text specified within the token if the event has been assigned to a Location. [IFHASIMAGE][event:eventimage][/IFHASIMAGE]
IFHASCATEGORY Includes the text specified within the token if the event has been assigned to a Category. [IFHASCATEGORY][event:category][/IFHASCATEGORY]
IFHASLOCATION Includes the text specified within the token if the event has been assigned to a Location. [IFHASLOCATION][event:location][/IFHASLOCATION]
IFALLOWSENROLLMENTS Includes the text specified within the token if the event allows enrollments [IFALLOWSENROLLMENTS][event:maxenrollments][/IFALLOWSENROLLMENTS]
ONEDAYEVENT Includes the text specified within the token if the event is a one day event (i.e. all in one day, as opposed to an All Day Event) [ONEDAYEVENT][event:startdate] - [event:enddate|hh:mm][/ONEDAYEVENT]
NOTONEDAYEVENT Includes the text specified within the token if the event spans more than one day [NOTONEDAYEVENT][event:startdate] - [event:enddate][/NOTONEDAYEVENT]
RECURRINGEVENT Includes the text specified within the token if the event is a recurring event [RECURRINGEVENT]Recurring - [event:recurring][/RECURRINGEVENT]
NOTRECURRINGEVENT Includes the text specified within the token if the event is a one off event. [NOTRECURRINGEVENT]One day event[/NOTRECURRINGEVENT]
IFTIMEZONEDISPLAYED If the Display Timezone settings is enabled, the text specified within the token is included. [IFTIMEZONEDISPLAY]([event:timezone])[/IFTIMEZONEDISPLAY]

Limited Use Tokens

The following tokens have specific limited uses:-
Token Description
BREAK  The token [BREAK] is used within the Detail View to denote where the template should break to display the following elements which are not tokenised:-
# Reminder controls
  1. Enrollment controls
  2. List of Enrollees
    This token can only be used three times. Any text placed before the first [BREAK] appears above all three elements. Any text after the third appears below the list of Enrollees, and above the control buttons.

Datetime formatting

Format string that defines the text representation of a datetime.
Examples:
MM/dd/yyyy HH:mm:ss : 12/31/2008 23:59:59
dddd d MMMM yyyy hh:mm:ss tt  : Wednesday 31 December 2008 11:59:59 PM

Format specifier Description Example
d Day of the month as a number from 1 to 31 1
dd Day of the month as a number from 01 to 31 01
ddd Abbreviated name of the day Mon
dddd Full name of the day Monday
M Month as a number from 1 to 12 1
MM Month as a number from 01 to 12 01
MMM Abbreviated name of the month Jan
MMMM Full name of the month January
yy Year as a two-digit number 01
yyy Year as a four-digit number 2001
t Represents the first charactor of the AM/PM designator A
tt Represents the AM/PM designator AM
h Hour as a number from 1 to 11 1
hh Hour as a number from 01 to 11 01
H Hour as a number from 1 to 23 1
HH Hour as a number from 01 to 23 01
m Represents the minute as a number from 0 to 59 5
mm Represents the minute as a number from 00 to 59 05
s Represents the second as a number from 0 to 59 3
ss Represents the second as a number from 00 to 59 03
f Full date time pattern - Long date, short time Thursday, April 10, 2008 6:30 AM
F Full date time pattern - Long date, long time Thursday, April 10, 2008 6:30:00 AM
g General date time pattern - Short date, short time 4/10/2008 6:30 AM
G General date time pattern - Short date, long time 4/10/2008 6:30:00 AM
Reference:Date and Time Format Strings (msdn.microsoft.com)
Contents
No sections defined
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out