How I built my personal website in 10 easy steps

  1. Download RSS Toolkit from CodePlex: http://www.codeplex.com/ASPNETRSSToolkit
  2. Link my Blogger posts feed, comments feed, Flickr feed and Last.fm to Feedburner. Force Blogger feeds to output as RSS 2.0 from Feedburner (switch off Smart Feed), otherwise RSS Toolkit can't process the ATOM entry links correctly.
  3. Set each Feedburner feed to the appropriate RssDataSource and set the DataSource to bind to a simple ASP.Net Repeater.
  4. Setup the RSS Toolkit Caching using the application settings suggested here.
  5. Revamp website design using templates from the Open Source Web Design templates library.
  6. Publish, and see results of Ben Powell's new website.
And, now for some code:

   1:  <%@ Register Assembly="RssToolkit" Namespace="RssToolkit.Web.WebControls" TagPrefix="cc1" %>
   2:  <asp:Repeater ID="Repeater1" runat="server" DataSourceID="RssDataSource1">
   3:      <HeaderTemplate>
   4:          <ul class="sidemenu">
   5:      HeaderTemplate>
   6:      <ItemTemplate>
   7:          <li><a href="<%# Eval("link") %>"><%# Eval("title") %>a>li>
   8:      ItemTemplate>
   9:      <FooterTemplate>
  10:          ul>
  11:          
  12:      FooterTemplate>
  13:  asp:Repeater>
  14:  <cc1:RssDataSource id="RssDataSource1" runat="server" url="http://feeds2.feedburner.com/benpowell" MaxItems="10">cc1:RssDataSource>

Update: Well now this is only 6 steps, but who's counting..

0 comments:

Post a Comment

Copyright © 2008 - Ben Powell - is proudly powered by Blogger
Smashing Magazine - Design Disease - Blog and Web - Dilectio Blogger Template