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:

Faculty compete in first ever 180s Research Challenge

   Tuesday, March 28 2017

Faculty will go head-to-head in the inaugural 180-second Research Challenge, and everyone's welcome to come out and show their support.

Read more

Experience Research Week

   Monday, March 27 2017

The community is invited to join in as we celebrate faculty and student research during Research Week, on now to April 1.

Read more
Psychology students at Bunkyo Gakuin University

PSYC friends with Tokyo’s Bunkyo Gakuin University

   Monday, March 27 2017

Psychology faculty Sandra Vermeulen and Mike Wolosyzn presented their research in Tokyo before Bunkyo Gakuin's annual visit to TRU.

Read more
High school chemistry

Reversing downward STEM trend

   Friday, March 24 2017

Radio NL's Talk to the Experts discusses TRU's new innovative program for those wanting to teach high school math and science.

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:

Psychology students at Bunkyo Gakuin University