Graffiti History Widget
Graffiti CMS doesn't ship with an archive/history widget to display the number of posts published by month, as is common in many other blog engines. I've been looking for such a widget for several months and Keyvan pointed me to one a few days ago that I got up and running in just a few moments today. You'll find it linked from this forum thread, which I'm quoting the relevant post below to make things easier for you:
Okay, here is the binary.
Here is a VS2008 Solution.
And here are the view and layout files that I used.
Again, I based this on Jon Sagara's original Archive Widget. Jon included several Plug-ins for cache invalidation. Honestly I did not look into these at all, everything seems to be functioning the way I wanted for now. As this was my first Widget, and I based it on "borrowed" code, converted to VB, I'm sure there are some things that may not be best practice. Feel free to critique, you won't hurt my feelings.
Basic setup is to drop the dll in your bin folder, go into Widget section of the control panel and add it to a sidebar, choose the number of months you want displayed and your "Older Items" link text. Then create two uncategorized posts, one called "archive", one called "olderitems". Tweak the layout and view files I included above and you should be in business.Thanks-
Greg
Got it up and running in really about 5 minutes - very nice, and a great example of how easy it is to extend Graffiti. Thanks Greg!
6 Comments
New Archive Calendar said
This afternoon, for want of anything better to do with the freezing cold outside and the housework inside, I wrote an archive calendar chalk extension for the website. It's over there on the far sidebar. At present, it's a chalk extension and not a widget
Moved to Graffiti said
For those of you that didn't notice, I've made a couple of changes recently. The first one was not really of my choice, Google moved Feedburner to a different location and I think it changed my feed link. I say I think, because I didn't notice until I
Adding a reference page for Community Server posts said
As I mentioned previously, this site used to run on Community Server and I have recently moved it to Graffiti. I had a few posts that were linked to and hit quite a lot and since the move my traffic has been way down. I was wanting a better method of
Sulumits Retsambew said
More good info about graffiti cms. Thanks.
Italian Translation said
Graqffiti is great blog engine,but is still not so popular and there are not many plugins for it.
English to Italian translation said
Very useful information. Thanks for sharing.