Register  |  Login
  Information > DNN Blog > DNN Events
DotNetNuke Blog

Current Articles | Categories | Search | Syndication

Events: RSS by Design

Prior to version 4.1.0 of the Events module, RSS support has been more by accident than design. I've been working up a designed in RSS capability, so I thought I'd give a brief view on what is there for now.

image

There is a new section in the module settings as shown to the left. It includes: a check box to enable; a drop down to select what date to use as the publication date (I figured that some people may wish to use a different date to the one I might decide on); the number of past days of data to include in the feed; a feed title; and a feed description.image

Ticking the check box enables the RSS icon at top right of the module. It doesn't use the syndicate option with the module menu, so you can turn that off. I figured it gave more flexibility putting inside the container, that way if people aren't using a container they can still have the RSS feed showing. I guess there isn't much to see with this one, but here's a screenshot (note the new recurrence column showing up in the list view....).

The feed includes Title/Description/Image/Location/Category/Priority in the main feed. The Description is currently the complete description content. Category, Location  and Priority (not Normal Priority) are also added as feed Categories, so your feed reader should be able to filter by them.image

image

These are a couple of screen shots from the feed in IE7. The text showing Category/Location will be localised. Not sure where the feed description is displayed in IE, but it's in the underlying file... The title I have here is the site name (4.1.0 Events) and the Feed Title as entered in the module settings. On the screenshot to the right you can see the Category and Location listed as feed categories, so you can filter on them.

Edit 18/10/2008

I've just added some parameter support to the URL. You can sub select by:-

          • DaysBefore - Number of days before today
          • DaysAfter - Number of days after today
          • CategoryName - Name of category
          • CategoryID - ID of category
          • LocationName - Name of location
          • LocationID - ID of location
          • Importance - Priority Number - 1,2,3
          • Priority - Priority name - Low, Medium or Normal, High - In English or local language
          • OwnerName - DisplayName of Owner
          • OwnerID - ID of Owner
          • MaxNumber - Number of events

Consequently you can now use a URL such as ‘…/400/DesktopModules/Events/EventRSS.aspx?mid=398&tabid=36&LocationName=Test&DaysBefore=100' to select events occurring at the 'Test' location in the last 100 Days.

posted @ 19 December 2009 11:09 by Roger Selwyn

Previous Page | Next Page

COMMENTS

Name (required)

Email (required)

Website

CAPTCHA image
Enter the code shown above: