Skip to main content

Calendar Feed

Data Attributes

  • data-type - calendar (specifies news processor)
  • data-url - url of page to grab calendar from
  • data-noimage - comma-delimited image urls to replace missing images from news posts / featured image (widest in post). If multiple images are supplied one will be selected at random
  • data-featured-width - specify the minimum width for the featured image. If no content images are suitable it will default to images specified in data-noimage
  • data-categories - querying the feed keywords only pull categories specified (comma delimited - if your tag has a comma in it please escape it with a backslash \,)
  • data-categories-logic - handle multiple categories with logic OR or AND (default OR)
  • data-ignore-categories - do not include the specified categories in the return (comma delimited - if your tag has a comma in it please escape it with a backslash \,)
  • data-start - pull events after this start date (use string value dates described here)
  • data-end - pull events before this end date (use string value dates described here)
  • data-order - any template variable below ASC / DESC (ASC default)
  • data-limit - limit the number of results
  • data-local-href - allow the {href} template variable to link to the calendar page (false default)
  • data-schedule-update - force an update of the page (comma delimited - use string value dates described here, preferably in the format 1:30am)

Content Variables

Variables placed at the start of a new paragraph in eventsbuilder that influence the behaviour of specific posts (options are all comma delimited). Usage:

variable: option1,option2
  • categories - keywords
  • keywords - keywords
  • tags - keywords
  • authors - usernames
  • related - urls
  • title - overwrite page title

Template Variables

  • {sitebuilderID} - id of the individual event in sitebuilder (in calendars this is unique for each repeated event)
  • {sitebuilderItem} - common id of the event in sitebuilder (in calendars this is common across repeated events)
  • {sitebuilderEdit} - url to edit the item
  • {sitebuilderDelete} - url to delete the item
  • {title} - title of news post
  • {titleNormalised} - convert accents and other special chars to their basic equivalent
  • {categories} - comma delimited categories
  • {classes} - space delimited lowercase categories (useful for classes)
  • {start} - start date in default style i.e. Friday 6 Jun 2014
  • {startTS} - start date millsecond timestamp
  • {startTime} - time styled g:ia (5:16pm)
  • {startDay} - day styled D (Mon through Sun)
  • {startDate} - date styled d (01 to 31)
  • {startMonth} - month styled M (Jan through Dec)
  • {startYear} - year styled Y (4 digits - 2015)
  • {end} - start date in default style i.e. Friday 6 Jun 2014
  • {endTS} - start date millsecond timestamp
  • {endTime} - time styled g:ia (5:16pm)
  • {endDay} - day styled D (Mon through Sun)
  • {endDate} - date styled d (01 to 31)
  • {endMonth} - month styled M (Jan through Dec)
  • {endYear} - year styled Y (4 digits - 2015)
  • {eventTime} - show the time of the event. If a single day (g:ia - g:ia), if multiple (g:ia, 1 day 10 hours)
  • {publicationDate} - publication date in default style i.e. Friday 6 Jun 2014
  • {publicationDateTS} - publication date millsecond timestamp
  • {lastUpdated} - last updated date in default style i.e. Friday 6 Jun 2014
  • {lastUpdatedTS} - last updated date millsecond timestamp
  • {image} - image src for the post, if empty can have default applied to attribute data-noimage
  • {featuredImage} - widest image in the content, if empty can have default applied by attribute data-noimage
  • {firstItem} - if repeated event is this the first of the series (true or false)
  • {location} - location of the calendar event
  • {excerpt} - content stripped of HTML tags
  • {content} - content
  • {paragraphExcerpt(x)} - Any paragraphs found in the content where x corresponds to the order in which it is found stripped of HTML tags
  • {paragraphContent(x)} - Any paragraphs found in the content where x corresponds to the order in which it is found
  • {paragraphClass(x)} - Any paragraphs found in the content where x corresponds to the order in which it is found creating a class name based on the id followed by "-p" then x, i.e. news-p1
  • {contentUrl(x)} - Any urls found in the content will create a set of links where x corresponds to the order in which it is found
  • {image(x)} - Any images found in the content will create a set of links where x corresponds to the order in which it is found
  • {href} - link to news post

Example

<div id="calendar" data-type="calendar" data-url="/fac/soc/economics/intranet/manage/calendar/" data-limit="10">
<h2><a href="{href}">{title}</a> </h2>
<p>{publicationDate}</p>
<p>From: {start} </p>
<p>To: {end}</p>
<p>Location: {location}</p>
<p>Categories: {categories}</p>
</div>

Output

Postgraduate Winter Graduation

Thursday 13 Dec 2018

From: Thursday 17 Jan 2019 5:15pm

To: Thursday 17 Jan 2019 7:30pm

Location:

Categories: student event,promoted,create page


360 Lecture: Martin Reeves, Chief Executive of Coventry City Council

Tuesday 11 Dec 2018

From: Monday 21 Jan 2019 5:00pm

To: Monday 21 Jan 2019 6:00pm

Location:

Categories: create page,hidden


Warwick/Princeton/Utah Political Economy Conference 2019

Monday 26 Nov 2018

From: Saturday 23 Mar 2019 9:15am

To: Sunday 24 Mar 2019 5:15pm

Location: Warwick in Venice

Categories: promoted,create page,political economy conference,conference,homepage-events


Royal Economic Society 2019 Annual Conference

Wednesday 12 Dec 2018

From: Monday 15 Apr 2019 12:00am

To: Wednesday 17 Apr 2019 12:00am

Location:

Categories: featured,create page,conference,spotlight,homepage-events


Economics PhD Conference

Wednesday 2 Jan 2019

From: Monday 3 Jun 2019 10:00am

To: Tuesday 4 Jun 2019 5:00pm

Location:

Categories: promoted,create page,conference,phd conference,homepage-events