RSS Feed Combined Snippet

Use this snippet to display a feed of news, blog posts, or events on your page. You can combine multiple feeds. This snippet includes a styled heading and the option for buttons or social media links in the heading. This is an advanced function.

rss-news-example

rss-announcements-example

latest-post

events-feed

rss-combined

  1. Enter a title in the Heading field. This is the text that appears above the line on the left.
  2. Enter linked text for each button in the View More Links/Social field.
    1. Button text just needs to be separated by a space as each link will become a separate button.
    2. If you want to include social media icons, insert the Social Icons snippet.
  3. The URL for the feed is entered in the RSS Feed Link. Follow these instructions to get a news feed URL.
    1. For a single feed source use the basic RSS feed URL.
      1. For Michigan Tech News, Unscripted, or Tech Today, this URL can be found using the links under the News Sources on the RSS Feeds Subscribe page (www.mtu.edu/news/subscribe/feeds/).
      2. For a Michigan Tech blog just add /feed to the end of the URL. For example: https://blogs.mtu.edu/webmaster/feed/.
    2. For a specific news category/topic use:
      http://www.mtu.edu/mtu_resources/php/news/rss/?include=CATEGORY&site=NAME

      1. “CATEGORY” is the name of the existing category
      2. “NAME” is news, unscripted, or magazine if pulling from a single source only
      3. “&site=…” can be omitted if you want to pull from all sources
    3. For including announcements from Canvas:
      1. Go to your announcements page in Canvas.
      2. Click the RSS Feed button at the top. rss-button
      3. A new page will open. Use the URL from this page as the Feed Link.
    4. For combining multiple sources use:
      http://www.mtu.edu/mtu_resources/php/RSScombine.php?limit=10&title=TITLE&link=URL&url=FIRST,SECOND

      1. “TITLE” is what you name the combined feed page, encoded (i.e. %20 for spaces).
      2. “URL” is the main URL of the page the feed will live on (not encoded).
      3. “FIRST” and “SECOND” are the individual feed URLs (encoded separately) separated by commas. You can use more than two.
  1. The URL for the feed is entered in the RSS Feed Link. Follow these instructions to get an events feed URL.
    1. To get this URL from the University Events Calendar:
      1. Go to events.mtu.edu and Login.
      2. From the Admin menu, go to Content and select Widget Builder.
      3. Create the widget with the parameters needed and choose Preview Widget.
        blogs.mtu.edu/webmaster/event-widget-builder
      4. Add “&format=rss” (without the quotation marks) to the end of the URL to use in this field.
      5. Be sure your URL starts with https.
  1. The Type field will determine the format of the resulting feed.
    1. “news” will display a news feed with larger images. Only use this option if you are not including a blog feed.
    2. “announcements” will display a news feed with smaller images. Use this option if you are including a blog feed or you want to specify the information displayed (see step 7).
    3. “latest” will display the most recent blog post.
    4. “events” will display the events feed from the University Events Calendar or a Google Calendar.
  2. In the limit Value field, enter the number of stories you want to appear in the feed.
  3. You are able to change what pieces are displayed only for the Announcements or Latest Post version. In the blank space below limit add the word display. In the cell next to that enter which items should display, separated by a comma:
    1. In Announcements you can add title, description, date, author, thumbnail.
    2. In Latest Post you can add date, title, author, full, trunc, thumbnail. Full would display the entire post text and trunc would display a shortened version of the text with a read more link.