Skip to main content Skip to navigation

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 hereLink opens in a new window)
  • data-end - pull events before this end date (use string value dates described hereLink opens in a new window)
  • 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 hereLink opens in a new window, 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

Economics Winter Graduation Reception 2024

Thursday 4 Jan 2024

From: Monday 15 Jan 2024 4:30pm

To: Monday 15 Jan 2024 7:00pm

Location: Chancellors Suite, Rootes Building

Categories: featured,promoted,create page,hidden,homepage-events


EconBites Lecture with Professor Andrew Oswald and Professor Sonia Bhalotra

Thursday 4 Jan 2024

From: Wednesday 17 Jan 2024 11:00am

To: Wednesday 17 Jan 2024 12:00pm

Location: MS.01 Zeeman Building

Categories: promoted,create page,homepage-events


Introduction to Economics

Thursday 14 Dec 2023

From: Monday 29 Jan 2024 5:15pm

To: Monday 29 Jan 2024 6:30pm

Location: Online

Categories: create page,hidden,homepage-events


Year 1 Dinner and Games Night

Thursday 11 Jan 2024

From: Monday 29 Jan 2024 6:30pm

To: Monday 29 Jan 2024 9:30pm

Location: Panorama, Rootes Building

Categories: student event,promoted,create page,homepage-events


Alumni Career Journeys & Pizza Reception

Thursday 11 Jan 2024

From: Wednesday 7 Feb 2024 1:00pm

To: Wednesday 7 Feb 2024 2:30pm

Location: R0.21

Categories: promoted,create page,homepage-events


International Women's Day: Coffee with Economists

Wednesday 10 Jan 2024

From: Friday 8 Mar 2024 5:30pm

To: Friday 8 Mar 2024 6:30pm

Location: Online (MS Teams Live Event)

Categories: create page,hidden


Call for Papers - Energy and Well-being Symposium

Wednesday 18 Oct 2023

From: Saturday 30 Mar 2024 9:00am

To: Saturday 30 Mar 2024 5:00pm

Location:

Categories: create page,hidden


Review of Economics Studies Tour

Wednesday 20 Dec 2023

From: Monday 13 May 2024 9:00am

To: Tuesday 14 May 2024 2:00pm

Location: Scarman

Categories: create page,hidden,conference


Economics PhD Conference

Thursday 11 Jan 2024

From: Tuesday 28 May 2024 9:00am

To: Thursday 30 May 2024 5:00pm

Location: University of Warwick, Coventry, United Kingdom

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


Econometrics & Data Science Conference

Wednesday 20 Dec 2023

From: Wednesday 29 May 2024 9:00am

To: Thursday 30 May 2024 5:00pm

Location: Scarman

Categories: create page,hidden,conference