in

BillRob.com

Browse Folders

CS Recent Blog Post Sidebar

Downloads: 1,763 File Size: 1.8kB
Posted By: Bill Robertson Views: 1,695
Date Added: 09-24-2006

This is a UserControl I wrote because I wanted to show the most recent posts for a specific blog littered throughout my site.  Place this control in a directory and reference it like a regular user control. 

<%@ Register TagPrefix="BR" Src="~/UserControls/RecentPostsSideBar.ascx" TagName="RecentPostsSideBar" %>

<BR:RecentPostsSideBar id="fdr_rp" runat="server" EnableViewState="false" Title="Recent Podcasts" AppKey="podcast" />

  • AppKey -- the name of the blog you want the most recent posts to appear.
  • Title -- the text for the header of the content area.
  • PageSize -- the number of records to show, defaults to 5. 

The snippet above will pull the most recent 5 posts from the blog called "podcasts" and display them with the title of Podcast. 

Let me know what you think.

Comments

No comments exist for this file.

Add Comment

(required) 
(required)
(optional)
(required) 
Add
Powered by Community Server (Commercial Edition), by Telligent Systems