The {gCalMarkup selector/} command is used in gCalMarkup templates to insert information from Google calendar events into the template. When the template is used, the entire {gCalMarkup/} command is replace by the selector value from the current calendar event, calendar, group, or category. The following table lists all of the available selectors, and gives a description of the selector and an example taken from this gCalMarkup test calendar. There are also several selectors that insert non-event information: e.g. _selectionChanged.

Selector Categories:

Waiting for Google...

Selector Description Example (result from test calendar) All-Day Events Version
{gCalMarkup [selector]/} - Event Start Time
_eventTime Start time in "hh:mm xm" format {gCalMarkup _eventTime/} blank
_eventHours Starting hours {gCalMarkup _eventHours/} "--"
_eventMinutes Starting minutes {gCalMarkup _eventMinutes/} "--"
_eventAmPm Starting am/pm {gCalMarkup _eventAmPm/} blank
_eventDay Starting day (1-31) {gCalMarkup _eventDay/}
_eventDayText Starting day (Sunday - Saturday) {gCalMarkup _eventDayText/}
_eventDayTextShort Starting day (Sun - Sat) {gCalMarkup _eventDayTextShort/}
_eventMonth Starting month (1-12) {gCalMarkup _eventMonth/}
_eventMonthText Starting month (January - December) {gCalMarkup _eventMonthText/}
_eventYear Starting year {gCalMarkup _eventYear/}
_eventDateString Date in readable form {gCalMarkup _eventDateString/}


{gCalMarkup [selector]/} - Event End Time
_eventEndTime End time in "hh:mm xm" format {gCalMarkup _eventEndTime/} blank V015
_eventEndHours Ending hours {gCalMarkup _eventEndHours/} "--" V015
_eventEndMinutes Ending minutes {gCalMarkup _eventEndMinutes/} "--" V015
_eventEndAmPm Ending am/pm {gCalMarkup _eventEndAmPm/} blank V015
_eventEndDay Ending day (1-31) {gCalMarkup _eventEndDay/} V015
_eventEndDayText Ending day (Sunday - Saturday) {gCalMarkup _eventEndDayText/} V015
_eventEndDayTextShort Ending day (Sun - Sat) {gCalMarkup _eventEndDayTextShort/} V015
_eventEndMonth Ending month (1-12) {gCalMarkup _eventEndMonth/} V015
_eventEndMonthText Ending month (January - December) {gCalMarkup _eventEndMonthText/} V015
_eventEndYear Ending year {gCalMarkup _eventEndYear/} V015
_eventEndDateString End date in readable form {gCalMarkup _eventEndDateString/} V015


{gCalMarkup [selector]/} - Event UTC Start Time
_eventTimeUTC Start time in UTC in "hh:mm xm" format {gCalMarkup _eventTimeUTC/} blank
_eventHoursUTC Starting hours in UTC {gCalMarkup _eventHoursUTC/} "--"
_eventMinutesUTC Starting minutes {gCalMarkup _eventMinutesUTC/} "--"
_eventAmPmUTC Starting am/pm {gCalMarkup _eventAmPmUTC/} blank
_eventDayUTC Starting day in UTC (1-31) {gCalMarkup _eventDayUTC/}
_eventDayUTCText Starting day in UTC (Sunday - Saturday) {gCalMarkup _eventDayUTCText/}
_eventDayUTCTextShort Starting day in UTC (Sun - Sat) {gCalMarkup _eventDayUTCTextShort/}
_eventMonthUTC Starting month in UTC (1-12) {gCalMarkup _eventMonthUTC/}
_eventMonthUTCText Starting month in UTC (January - December) {gCalMarkup _eventMonthUTCText/}
_eventYearUTC Starting year in UTC {gCalMarkup _eventYearUTC/}
_eventDateStringUTC Date in readable form (UTC) {gCalMarkup _eventDateStringUTC/}


{gCalMarkup [selector]/} - Event UTC End Time
_eventEndTimeUTC End time in UTC in "hh:mm xm" format {gCalMarkup _eventEndTimeUTC/} blank V015
_eventEndHoursUTC Ending hours in UTC {gCalMarkup _eventEndHoursUTC/} "--" V015
_eventEndMinutesUTC Ending minutes in UTC {gCalMarkup _eventEndMinutesUTC/} "--" V015
_eventEndAmPmUTC Ending am/pm in UTC {gCalMarkup _eventEndAmPmUTC/} blank V015
_eventEndDayUTC Ending day in UTC (1-31) {gCalMarkup _eventEndDayUTC/} V015
_eventEndDayUTCText Ending day in UTC (Sunday - Saturday) {gCalMarkup _eventEndDayUTCText/} V015
_eventEndDayUTCTextShort Ending day in UTC (Sun - Sat) {gCalMarkup _eventEndDayUTCTextShort/}
_eventEndMonthUTC Ending month in UTC (1-12) {gCalMarkup _eventEndMonthUTC/} V015
_eventEndMonthUTCText Ending month in UTC (January - December) {gCalMarkup _eventEndMonthUTCText/} V015
_eventEndYearUTC Ending year in UTC {gCalMarkup _eventEndYearUTC/} V015
_eventEndDateStringUTC End date in readable form (UTC) {gCalMarkup _eventEndDateStringUTC/} V015


{gCalMarkup [selector]/} - Event 24 Hour Start Time
_eventTime24 24 hour start time in "hh:mm" format {gCalMarkup _eventTime24/} blank V015
_eventHours24 24 hour starting hours {gCalMarkup _eventHours24/} "--" V015


{gCalMarkup [selector]/} - Event 24 Hour End Time
_eventEndTime24 24 hour end time in "hh:mm" format {gCalMarkup _eventEndTime24/} blank V015
_eventEndHours24 24 hour ending hours {gCalMarkup _eventEndHours24/} "--" V015


{gCalMarkup [selector]/} - Event 24 hour UTC Start Time
_eventTime24UTC 24 hour start time in UTC in "hh:mm" format {gCalMarkup _eventTime24UTC/} blank V015
_eventHours24UTC 24 hour starting hours in UTC {gCalMarkup _eventHours24UTC/} "--" V015


{gCalMarkup [selector]/} - Event 24 hour UTC End Time
_eventEndTime24UTC 24 hour end time in UTC in "hh:mm" format {gCalMarkup _eventEndTime24UTC/} blank V015
_eventEndHours24UTC 24 hour ending hours in UTC {gCalMarkup _eventEndHours24UTC/} "--" V015


{gCalMarkup [selector]/} - Event Start Misc
_eventTimeMS Starting time in milliseconds since midnight Jan 1, 1970 (?? doesn't work?) {gCalMarkup _eventTimeUTC/}
_eventYearShort Starting year short (09 for 2009, browser dependent) {gCalMarkup _eventYearShort/}
_eventYearTimezoneOffset Difference in minutes between local time and GMT {gCalMarkup _eventTimezoneOffset/}
_eventLocalDateString Local date {gCalMarkup _eventLocalDateString/}
_eventLocalTimeString Local time {gCalMarkup _eventLocalTimeString/}
_eventLocalString Local date/time {gCalMarkup _eventLocalString/}
_eventDateToString Date as string {gCalMarkup _eventDateToString/}


{gCalMarkup [selector]/} - Event End Misc
_eventEndTimeMS Ending time in milliseconds since midnight Jan 1, 1970 (?? doesn't work?) {gCalMarkup _eventEndTimeUTC/} V015
_eventEndYearShort Ending year short (09 for 2009, browser dependent) {gCalMarkup _eventEndYearShort/} V015
_eventEndYearTimezoneOffset Difference in minutes between local time and GMT {gCalMarkup _eventEndTimezoneOffset/} V015
_eventEndLocalDateString Local date {gCalMarkup _eventEndLocalDateString/} V015
_eventEndLocalTimeString Local time {gCalMarkup _eventEndLocalTimeString/} V015
_eventEndLocalString Local date/time {gCalMarkup _eventEndLocalString/} V015
_eventEndDateToString Date as string {gCalMarkup _eventEndDateToString/} V015


{gCalMarkup [selector]/} - Misc
_eventLength ??? not implemented yet (stop time?) {gCalMarkup _eventLength/}
_eventTitle Event title {gCalMarkup _eventTitle/}


{gCalMarkup [selector]/} - Event Info
_eventLocation Event location {gCalMarkup _eventLocation/}
_eventMap Link to event location on Google maps {gCalMarkup _eventMap/}
_eventURL Event URL (URL to Google event?) Event URL
_eventDescription Event Description {gCalMarkup _eventDescription/}
_eventDescriptionNoHTML Event Description with any HTML escaped {gCalMarkup _eventDescriptionNoHTML/}


{gCalMarkup [selector]/} - conditionals
select=a|b|c|...etc. This tag is replace with a, b, & c in rotation for each event. Any number of parameters may be used. When all the parameters are used the rotation begins again. e.g. used with two parameters to change the style of every other event.


{gCalMarkup [selector]/} - reserved - The following selectors are NOT related to events
_id Used to generate unique HTML element ids consisting of the current group and a unique article number. This is needed so gCalMarkup can handle Joomla pages that contain multiple groups and/or multiple articles on a single page (e.g. the blog format). gCalMarkup
_calendarChanged
_selectionChanged