Click here to Skip to main content
6,595,444 members and growing! (17,255 online)
Email Password   helpLost your password?
Enterprise Systems » Content Management Server » General     Intermediate License: The Code Project Open License (CPOL)

Microsoft Content Management Server Latest Postings RSS (C#)

By Stephen Huen

An RSS feed to generate the latest postings for a Microsoft Content Management Server web site.
C#, XML.NET 1.0, .NET 1.1, .NET 2.0, Win2K, WinXP, Win2003, ASP.NET, VS.NET2003, VS2005, Dev
Posted:7 Aug 2004
Updated:17 May 2006
Views:23,964
Bookmarked:17 times
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
5 votes for this article.
Popularity: 1.94 Rating: 2.78 out of 5
2 votes, 40.0%
1

2

3

4
3 votes, 60.0%
5

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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Stephen Huen


Member

Occupation: Web Developer
Company: Questech Systems
Location: Canada Canada

Other popular Content Management Server articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 1 of 1 (Total in Forum: 1) (Refresh)FirstPrevNext
General[Message Removed] Pinmemberstonber8:03 5 Oct '08  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 17 May 2006
Editor: Smitha Vijayan
Copyright 2004 by Stephen Huen
Everything else Copyright © CodeProject, 1999-2009
Web13 | Advertise on the Code Project