Click here to Skip to main content
Licence CPOL
First Posted 7 Aug 2004
Views 25,737
Bookmarked 17 times

Microsoft Content Management Server Latest Postings RSS

By | 18 May 2006 | Article
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 C# version of the feed is available here.

Configuration

  1. Update the title, link, and the description fields in LatestPostingsRSS.ascx to fit your site.
  2. There are two properties in LatestPostingsRSS.ascx:
    • StartChannelPath: Show new postings under this top channel path only.
    • NumDaysOfLatestNews: Show new postings within the last n days.
  3. Create an ASPX page. Delete all 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 an option to restrict new postings under a specific top channel. (Please note that the RSS page is now converted into a user control.)
  • V1.2 - 2006.05.16 - 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

Web Developer
Questech Systems
Canada Canada

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
-- There are no messages in this forum --
Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120517.1 | Last Updated 18 May 2006
Article Copyright 2004 by Stephen Huen
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid