An Improved Calendar for .Text

Issam knows me too well. He makes a comment about wanting a cool calendar for his blog and he knows I'm going to have to go off and mess with it. He probably knows that I have to rewrite it too ;) Scott Mitchell started by creating a very cool calendar control for .Text. Scott Watermasysk suggested a few improvements, and I did some looking and decided to do it my own way. Here's the main differences between my control and the one Scott Mitchell did:
  • It doesn't modify the data base.
  • Uses .Text's preexisting Cacher class to cache data for the monthly posts.
  • Contains Scott Watermasysks' suggestions of deriving from dotText's BaseControl. Uses the UrlFormats class built into dotText for URL parsing and makes the Previous month and next months go directly to the month without a post back using UrlFormats.
  • It's contained in a single ascx file.
I'm Running it on .Text 0.95. You can put it in your Skin's PageTemplate.ascx with
<overflow:DottextBlogCalendar id="DotTextBlogCalendar" runat="server"></overflow:DotTextBlogCalendar>
And register the TagPrefix with:
<%@ Register TagPrefix="overflow" TagName="DottextBlogCalendar" Src="DottextBlogCalendar.ascx" %>
I'm pretty tired so use it at your own risk but it seems to be working here. Let me know if you find any problems and I'll do my best to clean it up. Download the control here: http://blogs.pingpoet.com/overflow/pubfiles/DottextBlogCalendar_20040214b.zip

UPDATE: Based on some comments by Lawrence Liu I updated the link to a slightly newer version that has a minor bug fix in it related to links not showing for certain URL formats. The fix was made a long time ago. Not sure why I never updated the link.


Enjoy.

posted @ Saturday, February 14, 2004 4:32 AM

Print

Comments on this entry:

# re: An Improved Calendar for .Text

Left by Issam Elbaytam at 2/14/2004 5:22 AM

ah, thanks :) works great. Let's see what else do I need, ... ;)

# re: Hyperlinks not showing up in specific dates

Left by Lawrence Liu at 3/2/2004 2:26 AM

I got the control added just fine -- it looks great on the page, but for some reason, the hyperlinks are not showing up in specific dates. Any ideas?

# re: An Improved Calendar for .Text

Left by Lawrence Liu at 3/2/2004 2:59 AM

Hmmm, very strange, the first time that I open my blog Home Page, the date specific hyperlinks show up, but as soon as I navigate to another page, the hyperlinks are gone!

# re: An Improved Calendar for .Text

Left by Scott Willeke at 3/3/2004 1:48 AM

Lawrence:
Try downloading this one instead:
http://blogs.pingpoet.com/overflow/pubfiles/DottextBlogCalendar_20040214b.zip

I remember I made a change a while back that fixed something like what you're describing. Let me know if it works, I'll update the links.

# Improved Calendar for .Text

Left by RoudyBob.NET at 6/29/2004 6:47 PM

# Improved Calendar for .Text

Left by RoudyBob.NET at 6/29/2004 6:48 PM

# New skin for .Text (dottext) - Luxinterior

Left by Rum, Sodomy and the Lash at 6/30/2004 7:51 AM

Luxinterior - a new skin for .Text (dottext). This article explains how to customise the skin and provides links to download and install the skin.

# Luxinterior Skin for .Text with a Calendar

Left by overflow at 7/4/2004 4:13 AM

# New skins for .Text - LuxInterior

Left by Dennis' blog at 7/5/2004 3:26 AM

# Added a Calendar to dotText

Left by Swift Alpha at 8/28/2004 5:07 PM

# Nice little calendar addin

Left by blog.dreampro at 10/5/2004 5:38 PM

# re: An Improved Calendar for .Text

Left by alex at 10/5/2004 5:42 PM

If anyone's interested, I updated the control to use regular CSS instead. Here's the link

http://blog.dreamprojections.com/archive/2004/10/05/209.aspx

# re: An Improved Calendar for .Text

Left by overflow at 10/6/2004 1:21 AM

Awesome, thanks for the link.

# Map xml attributes to Object Properties, and an update to the .Text Calendar

Left by overflow at 10/6/2004 1:36 AM

# Blog Updates

Left by Geek Noise at 12/13/2004 12:39 AM

# A little globalization bug and fix

Left by Axle Munshine at 1/26/2005 9:07 PM

Hi,

your control is great.
.Text works great with globalization settings in French set to "fr-FR". For French Canada, "fr-CA" does not work well, but it's another matter.

The calendar control has a bug in French when choosing the next and previous month, where it gets confused.

Here's the fix:
1) Add <%@import namespace="System.Globalization" %> in the declarations
2) In the TryParseDateTime() method add IFormatProvider culture = new CultureInfo("en-US", true); just before the "try {" code.
3) Change parsedDate = DateTime.Parse(dateString); for parsedDate = DateTime.Parse(dateString,culture); and it will work great!

# re: An Improved Calendar for .Text

Left by Scott Willeke at 1/27/2005 12:53 AM

Cool thanks for the info!

# Make the .Text Calendar Control Go Global

Left by overflow at 1/27/2005 1:00 AM

# Make the .Text Calendar Control Go Global

Left by overflow at 1/27/2005 1:02 AM

# My First .TEXT Skin (Watercolor - Ergonomic)

Left by joeyDotNet.com at 1/28/2005 12:00 AM

# My First .TEXT Skin (Watercolor - Ergonomic)

Left by joeyDotNet.com at 1/28/2005 10:26 AM

# Enhancement features on .Text

Left by Kent J. Chen's Weblog at 1/29/2005 3:22 AM

.Text is such a good fundament for the people who is interested in hosting their own blog on .Net and SQL server based platform. At least, I am one of them, and also really enjoy digging into the author's source as well. Someone mentioned some other good blog fundament that contains the good features that .Text doesn't have naturally, such as search, comment block, etc...

# Aanpassen van .Text

Left by Whatever Blog at 8/23/2005 4:37 PM

# dotTextにカレンダー表示をつけてみました

Left by Yuma Shimakawa Personal Blog at 8/30/2005 12:27 PM

dotText????????????????

# re: An Improved Calendar for .Text

Left by Lawrence Liu at 3/5/2004 1:11 AM

Yup, it works perfectly now. Thanks!!!

# Like me Calendar?

Left by DaBlog of Ma' Mind at 10/4/2004 7:00 AM

# Like me Calendar?

Left by DaBlog of Ma' Mind at 10/4/2004 7:03 AM

# Lovely calendar, ain't it?

Left by DaBlog of Ma' Mind at 10/4/2004 8:52 AM

# An Improved Calendar for .Text

Left by Gary's Blog at 10/5/2004 5:28 PM

# Nice little calendar addin

Left by blog.dreampro at 10/5/2004 5:37 PM

# Adding a Calendar Control in .Text 0.95 (from: Dave Burke)

Left by TOURNEY LOGIC LINK BLOG at 1/10/2005 3:02 PM

# Adding a Calendar Control in .Text 0.95

Left by Dave Burke's Blog at 1/12/2005 9:30 AM

# Calendar Control Enhancement

Left by Zupancic Perspective at 1/16/2005 9:16 PM

# .Text Resourcen

Left by { shinja.net } blog at 11/10/2004 10:46 AM

# .Text Resources

Left by moeen.com/Blog at 7/11/2004 11:00 AM

# .Text Resources

Left by moeen.com/Blog at 7/11/2004 11:05 AM

# Improved Calendar for .Text

Left by RoudyBob.NET at 7/13/2004 10:29 AM

# re: An Improved Calendar for .Text

Left by Scott Mitchell at 2/14/2004 1:39 PM

I think you need to tweak the style.css file a bit. In FireFox, I have to scroll to the right to see the complete Calendar. I had this issue too and had to update the #leftmenu, #rightmenu, and #main styles (see http://scottonwriting.net/sowblog/Skins/Marvin3/style.css).

# re: An Improved Calendar for .Text

Left by Scott Willeke at 2/14/2004 3:37 PM

Thanks. The notable change to get it working was:

margin : 0px 220px 0px 190px;

on the #main selector in style.css

# Calendar Control for .Text blog engine

Left by Robert's Collosumus.NET Blog at 7/3/2005 8:40 AM

# Calendar Control for .Text blog engine

Left by Robert's Collosumus.NET Blog at 7/3/2005 8:40 AM

Comments have been closed on this topic.