The Artima Developer Community
Sponsored Link

.NET Buzz Forum
dasMonthView - dasBlog now includes a complete Year View...and I'm spent.

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Scott Hanselman

Posts: 1031
Nickname: glucopilot
Registered: Aug, 2003

Scott Hanselman is the Chief Architect at Corillian Corporation and the Microsoft RD for Oregon.
dasMonthView - dasBlog now includes a complete Year View...and I'm spent. Posted: May 22, 2004 2:42 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Scott Hanselman.
Original Post: dasMonthView - dasBlog now includes a complete Year View...and I'm spent.
Feed Title: Scott Hanselman's ComputerZen.com
Feed URL: http://radio-weblogs.com/0106747/rss.xml
Feed Description: Scott Hanselman's ComputerZen.com is a .NET/WebServices/XML Weblog. I offer details of obscurities (internals of ASP.NET, WebServices, XML, etc) and best practices from real world scenarios.
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Scott Hanselman
Latest Posts From Scott Hanselman's ComputerZen.com

Advertisement

I'm sitting here in the WS Interop Day tinkering with this dasBlog MonthView I was doing.  I've added a view that displays your blog (item titles) in a calendar for a year. 

Do check it out.  I'll give it to Omar this week and we'll get it into the source tree ASAP if folks dig it.

Updates since yesterday ;) :

  • If an entry doesn't have a Title, then I'll strip all HTML tags and take the first 50 characters of the content and add an ellipsis.  Many of my old Radio Userland posts from 2002 that I imported into dasBlog have this problem.
  • Should work but not tested: This page adds no new Resource strings and uses Invariant dates in the QueryString so the Calendar(s) should render in multiple languages (and possibly other calendar systems, such as Thai Bhuddist, as I make no assumptions as to how many months are in a year, etc.) Perhaps some attention to VaryByHeaders="Accept-Language" may be needed.
  • This is a ridiculously expensive page, second only to Search, so it includes Poorman's caching for 15 minutes.  <%@ OutputCache Duration="900" VaryByParam="*" %>  Certainly change this value to taste.  Arguably it should STAY cached until the cache is explicitly invalidated.  I think there's some stuff in dasBlog to do that, I just didn't going looking for it. 
  • I output the time the page was rendered at the TOP of the page (rather than the standard dasBlog rendered footer) just cause it's nice to know when these things get built.
  • Clicking on the Weblog Calendar view takes you to MonthView.aspx without any QueryString parameters.  This shows you the entries for the current month.  From here you can go forward and backward with the Next/Prev buttons.  This will be MonthView.aspx?month=YYYY-MM.
  • Clicking on a Year number at the top of the page will take you to a page with all the months filled out.  This is MonthView?year=YYYY.

Read: dasMonthView - dasBlog now includes a complete Year View...and I'm spent.

Topic: Looking for a Room Share at TechEd Europe? Previous Topic   Next Topic Topic: NUnit 2.2 beta 1

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use