University of Minnesota Extension
/
612-624-1222
Menu Menu

Extension > Template documentation > Web style guide > Displaying RSS feeds

Displaying RSS feeds

  1. Place the following code in the head of the page you want to add the feed to:
    <!-- #include virtual = "/lib/asp/rssviewer.inc" -->
  2. Choose from one of the four display options (short, medium, long, super-long):

    Short version

    Embed this code where you want the feed to be displayed:

    <%=GetRSSLinks("http://blog.lib.umn.edu/efans/master-gardener/atom.xml", 5, "short")%>

    Medium version

    <%=GetRSSLinks("http://blog.lib.umn.edu/efans/master-gardener/atom.xml", 5, "medium")%>

    Long version

    <%=GetRSSLinks("http://blog.lib.umn.edu/efans/master-gardener/atom.xml", 5, "long")%>

    Super long version

    <%=GetRSSLinks("http://blog.lib.umn.edu/efans/master-gardener/atom.xml", 5, "super-long")%>
  3. Replace the URL with your blog's RSS feed URL and the "5" with the number of items you want listed

Examples

Short version

Medium version

Long version

Super Long version

This script was designed to work well with feeds from Delicious and UThink blogs.

Ideal situation

Code

<div class="module">
  <h2>Ag news <a href="blog feed url"><img src="/assets/img/e-icon-rss.gif" alt="RSS Feed" /></a></h2>
  <%=GetRSSLinks("blog feed url", 3, "short")%>
</div>

  • © 2013 Regents of the University of Minnesota. All rights reserved.
  • The University of Minnesota is an equal opportunity educator and employer. Privacy