Calendar Feed
Data Attributes
data-type
- calendar (specifies news processor)data-url
- url of page to grab calendar fromdata-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 randomdata-featured-width
- specify the minimum width for the featured image. If no content images are suitable it will default to images specified in data-noimagedata-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 resultsdata-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
- keywordskeywords
- keywordstags
- keywordsauthors
- usernamesrelated
- urlstitle
- 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 wherex
corresponds to the order in which it is found stripped of HTML tags{paragraphContent(x)}
- Any paragraphs found in the content wherex
corresponds to the order in which it is found{paragraphClass(x)}
- Any paragraphs found in the content wherex
corresponds to the order in which it is found creating a class name based on the id followed by "-p" thenx
, i.e.news-p1
{contentUrl(x)}
- Any urls found in the content will create a set of links wherex
corresponds to the order in which it is found{image(x)}
- Any images found in the content will create a set of links wherex
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
Webinar: The New BSc Economics and Management course at Warwick
Monday 16 Sep 2024
From: Thursday 26 Sep 2024 4:30pm
To: Thursday 26 Sep 2024 5:30pm
Location: MS Teams
Categories: create page,hidden
Warwick Economics Postgraduate Study
Thursday 12 Sep 2024
From: Monday 30 Sep 2024 3:00pm
To: Monday 30 Sep 2024 4:00pm
Location: Zoom (on-line)
Categories: create page,hidden
Economists in the Civil Service
Tuesday 3 Sep 2024
From: Wednesday 9 Oct 2024 2:00pm
To: Wednesday 9 Oct 2024 3:00pm
Location:
Categories: featured,guest lecture,create page,hidden,homepage-events
In Conversation with Arun Advani
Friday 13 Sep 2024
From: Monday 14 Oct 2024 5:30pm
To: Monday 14 Oct 2024 9:30pm
Location: The Shard, London
Categories: create page,hidden
Undergraduate Live Chat
Thursday 15 Aug 2024
From: Thursday 17 Oct 2024 2:00pm
To: Thursday 17 Oct 2024 3:00pm
Location: Meet and Engage (online)
Categories: create page,undergraduate live chat
Violence Against Women Workshop
Monday 16 Sep 2024
From: Friday 18 Oct 2024 9:00am
To: Friday 18 Oct 2024 5:00pm
Location: Radcliffe Conference Center
Categories: promoted,create page,homepage-events
Careers in Economics Fair 2024
Tuesday 20 Aug 2024
From: Wednesday 6 Nov 2024 12:00pm
To: Wednesday 6 Nov 2024 4:00pm
Location: Panorama Suites, Rootes Building
Categories: student event,featured,promoted,create page,hidden,homepage-events
Undergraduate Live Chat
Thursday 15 Aug 2024
From: Thursday 14 Nov 2024 11:00am
To: Thursday 14 Nov 2024 12:00pm
Location: Meet and Engage (online)
Categories: create page,undergraduate live chat
Undergraduate Live Chat
Thursday 15 Aug 2024
From: Wednesday 11 Dec 2024 3:00pm
To: Wednesday 11 Dec 2024 4:00pm
Location: Meet and Engage (online)
Categories: create page,undergraduate live chat