65.9K
CodeProject is changing. Read more.
Home

Microsoft Content Management Server Latest Postings RSS (C#)

starIconstarIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIcon

2.78/5 (5 votes)

Aug 8, 2004

CPOL
viewsIcon

34655

downloadIcon

529

An RSS feed to generate the latest postings for a Microsoft Content Management Server web site.

Introduction

This is an RSS feed to generate the latest postings for a Microsoft Content Management Server web site.

A VB.NET version of the feed is available here.

Configuration

  1. Update the title, link, and description fields in LatestPostingsRSS.ascx to fit your site.
  2. There are two properties in LatestPostingsRSS.ascx:
    • StartChannelPath: Shows new postings under this top channel path only.
    • NumDaysOfLatestNews: Shows new postings within the last n days.
  3. Create an ASPX page. Delete all the HTML tags. Insert LatestPostingsRSS.ascx. For example:
    <%@ Page ContentType="text/xml" %>
    <%@ Register TagPrefix="uc1" TagName="LatestPostingsRSS" 
                     Src="~/UserControls/LatestPostingsRSS.ascx" %>
    <uc1:LatestPostingsRSS id="LatestPostingsRSS" 
      StartChannelPath="/Channels/WoodgroveNet" 
      NumDaysOfLatestNews="7" runat="server">
    </uc1:LatestPostingsRSS>

Notes

  1. The item description is fed from the posting Description field. You can modify it to use other posting properties like content from a common placeholder, for example.

History

  • V1.0 - 2004.08.07 - Base.
  • V1.1 - 2005.02.12 - Added option to restrict new postings under specific top channel. (Please note, the RSS page is now converted into a user control.)
  • V1.2 - 2006.05.14 - Added an ASP.NET 2.0 version.