This project is read-only.

Format of Archive widget (MonthList)

Jul 16, 2007 at 2:44 PM
Edited Jul 16, 2007 at 2:44 PM
In earlier builds I've used, the archive widget showed months like:
- July 2007
- June 2007

Now I'm getting an archive list overview such as:


I prefer the first style, but I can't seem to find any widget information. Is this available? I'd love to have some flexibility in it. Just some ideas:
the blog:MonthList adding parameters like: List=PerYear|PerMonth|PerWeek
the blog:RecentPosts with extra parameters like: MaxResult=1|2|3|etc TruncateTitle=15|20|25 (to truncate characters with too long titles)

Aug 1, 2007 at 5:11 PM
Um, I'm good with it the way it is, but I need to figure out how to make it default to "closed" (it currently defaults to the latest year I believe). Anyone?
Aug 1, 2007 at 10:00 PM
You can do it by removing two lines of the RenderMonths() method in MonthList.cs in App_Code/controls/

Remove these two lines:

if (date.Year == DateTime.Now.Year)
list.Attributes.Add("class", "open");
Aug 2, 2007 at 1:33 PM
Thanks... I'll get onto that as soon as I get home. ta.
Aug 3, 2007 at 1:18 PM
Yup, works fine, even on IIS7/Vista. thanks.