Feeds - RSS, Events, Date

RSS Feeds

In order to insert an RSS feed on a page, you must include the script. The following variables can be used to customize it to your liking.

Important
  • The first variable must be prefaced with a '?'. The remaining variables all use an '&' as a preface.
  • The last variable must be '&url'. If other variables follow it, the script may not work correctly or at all.
  • The URL must be 'https://'. This will prevent a mixed content blocking/warning error that might prevent the images from showing up as expected.
  • The order of the variables before the &url is irrelevant.
  • You may omit variables you do not want to use; this will set them to 0 by default.
  • Except where otherwise indicated, accepted options are 0 or 1.
  • num - This specifies the number of items to load. Typically, this will be between 3-10. Accepted options are 1-10.
  • size - This specifies the size of an image to display, to be displayed with the specified column width out of 12. For example, if the number specified is 3, the image will be 1/4 (3/12) of the available space. To display a full-width image in a sidebar, specify a size of 12. For any number less than 12, the description will be aligned to the right of the image. If a 0 is specified, the image will be hidden. Feed items that do not have a featured image attached will be formatted correctly regardless of this setting. Accepted options are 0-12.
  • title - This will show or hide the title.
  • date - This will show or hide the date.
  • desc - This will show or hide the description.
  • button - This will make the 'Read more' link a button or text.
  • inbody - This will enlarge the headings for better legibility in the body of a page.
  • forhome - This will change the entire layout for use on the homepage. This should ONLY be used on the homepage; most other variables will be ignored when this variable is enabled.
  • titlelink - This will link the title, making it teal.
  • nopad - This will reduce the padding around each feed item.
  • linkhide - This will show or hide the link. This will override the button setting. If this is set to 1, the title will be linked automatically.
  • althead - This will underline the headings.
  • url - This specifies the feed URL. It must be an RSS XML feed.
<!--#include virtual="/utilities/feed/rssparsefeed.php?num=4&size=4&title=1&date=0&desc=1&button=1&inbody=1&forhome=0&titlelink=0&nopad=0&linkhide=0&althead=1&url=https://inside.tru.ca/category/featured/feed" -->

The above code will display the below feed:

Nursing building

TRU opens state-of-the-art health-care building

   Tuesday, September 15 2020

The newly-opened Chappell Family Building for Nursing and Population Health was innovatively designed to keep up with changing health education.

Read more

3MT winner takes a critical look at mountain biking

   Tuesday, September 15 2020

Typically, the Three Minute Thesis (3MT) competition is held every March, but this year university campuses closed before the event could take place. However, the show must go on, as they say, and last week it did, when seven TRU graduate students presented their research virtually before a panel of non-expert judges. The judges, which...

Read more
Donor presents scholarship to TRU Law student.

Firm supports next generation of lawyers

   Thursday, September 3 2020

Vancouver-based firm MacLean Family Law donated $65,000 to create a scholarship and course prize for TRU Law students.

Read more

Can CBD and nitric oxide prevent the spread of COVID-19?

   Wednesday, September 2 2020

Three TRU researchers are working toward the development of an antiviral nasal spray and mouthwash using high-cannabidiol extracts, terpenes, and nitric oxide.

Read more
<!--#include virtual="/utilities/feed/rssparsefeed.php?num=3&size=12&title=0&date=0&desc=0&nopad=1&linkhide=1&url=https://inside.tru.ca/category/featured/feed" -->

The above code will display the below feed:

Nursing building
Donor presents scholarship to TRU Law student.

Event Feeds

Event feeds work almost identically to RSS feeds. However, the only options are: num and inbody. The 'inbody' element will enlarge the font size of the feed.

To create the URL for an events feed, go to events.tru.ca and view the category or tag of the feed you want to display, then add 'eo-events?event_start_after=now' to the end of the URL. The include statement should look like the following:

<!--#include virtual="/utilities/ics-parser/parseEvents.php?num=4&inbody=1&url=https://inside.tru.ca/events/category/faculty-and-staff/eo-events?event_start_after=now" -->

The above code will display the below feed:

TRU employees lunch and learn: Working Remotely with Children: Practical Strategies

  Date: September 30, 12:00pm - 1:00pm
  Location: No location specified

Get some tips, suggestions and insights on working from homewhile homeschooling and caring for your children.


TRU employees lunch and learn: Building Resilience in Uncertain Times (COVID-19)

  Date: October 14, 12:00pm - 1:00pm
  Location: No location specified

Understanding that you have control over how you respond, can help you become more resilient in the midst of challenges and changes


TRU employee lunch and learn: Mental Health & Well-Being: Coping Strategies During COVID-19

  Date: October 21, 12:00pm - 1:00pm
  Location: No location specified

What are the big three mental health impacts we can expect inthe workplace? Find out.


TRU employee lunch and learn: Through the Looking Glass: Thrivingin the New Normal

  Date: November 18, 12:00pm - 1:30pm
  Location: No location specified

The change in our work arrangements happened rapidly, seemingly overnight... #0072c6">Through the Looking Glass- Thriving in the New Normal
Brought to you byHR Health & Wellness and your CUPE LOA-R Committee | Facilitated by Tracy Anderson, Morneau Shepell

The change in our work arrangements happened rapidly, seemingly overnight. Immediately, we all had to deal with thestress of sudden changes to our routines. Some had to learn how to balanceworking remotely with family life, and others had to deal with becoming an “employee-in-waiting” as furloughs or layoffs were implemented.  The mostimportant implication of the changes currently under way, is that there is no going back to normalcy or what 'used to be'.   What we can do is respond to the changes before us and cultivate an outlook which will feed our ability to adapt and thrive to our ‘new normal’. As the self-isolation lifts, we can prepare ourselves and cultivate an outlook that will help us in adapting and thriving at work while supporting our families.

By the endof this Lunch & Learn, you will be able to explore and prepare for:

  • The societal and work changes that will result from living through the pandemic
  • Best practices for adapting successfully in the wake of this crisis
  • Taking care of yourselves, your family and your colleagues as the world turns

Register here

*Please note: This is a 1.5 hour webinar and is availableTRU employees only.


Dates & Deadlines Feeds

To display a feed of upcoming Dates & Deadlines, it is configured much like the other feeds.

The defaults are:

  • Number of items: 5 (num=5)
  • Link the title with the URL (url=1)
  • Use smaller text (h4 for titles, p for dates)
  • Show all dates (audience=all)
  • Display as a list (blockgrid=0)
  • If blockgrid is enabled, display a grid of dates 3 wide on medium screens (grid=3)

The possibilities for the size variable are: 12,14,16,20,24,28,32. This will change the date size; the title will be 4px larger. For instance, if &size=20, the dates will be 20px and the titles will be 24px. Enlarging the fonts will allow the text to be visible on CCTV screens.

The options to display in a block grid are: &blockgrid=1 to enable, &grid=2 (typically 2-4 is appropriate, default is 3).

The options to for the audience variable are: &audience=staff or &audience=student. The default (left blank) will display all dates.

<!--#include virtual="/utilities/dates/dates-list.php?num=8&url=0&size=14&blockgrid=1&grid=4" -->

The above code will display the below feed:

    Search To Top