Thompson Rivers University
Thompson Rivers University

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 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=http://inside.tru.ca/category/featured/feed" -->

The above code will display the below feed:

Jeff McLaughlin in his office at TRU

USA and EU relations in Austria

   Friday, May 19 2017

Jeff McLaughlin, Philosophy, History and Politics chair, will be speaking about our commonalities and cultural differences.

Read more

Build your business, bring your dog

   Thursday, May 18 2017

Kamloops Innovation has launched the Built in Kamloops Contest, awarding an early-stage startup with a package valued at more than $50,000.

Read more
Student group study

Talk to the Experts: Canadian experience through short-term studies

   Wednesday, May 17 2017

TRU World's Larry Peatt stopped by Radio NL to chat about a program that draws hundreds of students to campus over the summer.

Read more

A mother’s advice

   Friday, May 12 2017

This Sunday is Mother's Day and to celebrate we asked Chancellor Wally Oppal and current students for the best and worst of motherly advice.

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

The above code will display the below feed:

Jeff McLaughlin in his office at TRU
Student group study