Before you can perform the step(s) below, you first must follow the directions on the main documentation page.

Example RSS Feed URL

Here are a few example URLs if you put the RSS feed handler (BlogRss.ashx) in the suggested directory.

http://www.anydomain.com/DesktopModules/Blog/BlogRss.ashx?portalid=1&blogid=1
http://www.anydomain.com/DesktopModules/Blog/BlogRss.ashx?portalid=1&blogid=1&output=rss
http://www.anydomain.com/DesktopModules/Blog/BlogRss.ashx?portalid=1&blogid=1&output=rss&categoryid=1

All you have to do is put together your preferred URL, and then publish it where ever it is required (i.e., feedburner, rss links, etc.).

Parameters

  • portalid - (required) This is the id of the portal.
  • blogid - (required) This is the id of the blog that you want to generate a feed for.
  • categoryid - (optional) If your blog is using categories, you can specify your feed to only render results from that specific category.
  • output - (optional) The default value is "rss" for RSS 2.0 output (preferred), but you can also specify "atom" for Atom output.
  • entrylimit - (optional) The default value is 10, but if you'd like to specify a larger or smaller number, you can.
  • copyright - (optional) The default value is "false" to show a generated by XML comment at the end of the feed. Change to "true" to remove it.

Caching

As of version 01.02.00, caching of the RSS Feed output is supported. This increases performance of the return of the RSS Feed to consuming applications, and also conserves resources on your own application and/or server(s). The default time that the RSS Feed is cached is for 5 minutes. If you would like to adjust that time, simply add the following code to the web.config of your website.

<appSettings>
     <add key="AppSettings.BlobXmlCacheTime" value="20" />
</appSettings>


The example above will adjust your cache time from 5 to 20 minutes. During that time, your cache will be held in memory, and not regenerated.

If you happen to notice that your feed is not cached for the right amount of time, check your Event Log in your Admin Menu of the DNN website in question.

Last edited Jul 16, 2010 at 2:51 PM by hismightiness, version 2

Comments

No comments yet.