tim
Jul 10, 2008
Introducing PloneStatCounter
Off-topic (for a Quills blog), but I've written a small product to ease integration of a StatCounter page counter into Plone sites.
As part of the migration detailed in the previous post, I took the opportunity to write a small 'product' that makes it easy to integrate a StatCounter page counter into Plone sites. I had finally gotten sick of having to hack at main_template.pt in order to jam in the StatCounter code fragment. The result is Products.PloneStatCounter.
It provides an easy-to-use configlet for setting up the StatCounter project id and security code - as well as a couple of other slightly mysterious variables that appear to be required.
I made extensive use of Malthe Borch's tutorial on 'Adding configuration settings using Zope 3 schemas and formlib' and David Convent's tutorial on 'Customizing the viewlets in main_template'. As such, there is little of interest in a coding sense.
... Except for the fact that I found it necessary to avoid registering my viewlet in ZCML as I only wanted it to be used once the product itself had been installed in a portal_quickinstaller/GenericSetup sense. As such, I had to write the local viewlet registration code manually and have it run in my final GS import step. philiKON was very helpful in pointing me in the right direction for how to do this, so thanks to him for saving me several hours of pain.
Jul 08, 2008
Site upgrades and eating my own dog food
Underlying Plone upgrades and now using Quills 1.7.0b2.
I spent this weekend upgrading the underlying Plone instance used to host my blog. (This was largely because I wanted to get my personal site onto Plone 3 so I could use the NuPlone theme.)
In the process, I took the opportunity to migrate the blog to Quills 1.7.0b2. Doing so required me first to release 1.7.0b2. The only change included from beta 1 is that the migration now ensures that weblog entry workflow states are correctly handled. My hope is that this will address issue 129 in the Quills tracker.
Eating my own dog food has revealed a couple of bugs. First, portlets don't appear to work in the archive and topics areas of blogs. From what I recall, this works in QuillsEnabled, so the fix shouldn't be difficult. Second, when I tried to use ScribeFire (for remote blogging), adding a new post as a draft meant it was lost to ScribeFire (although there on the server). Not sure whether this is a Quills or ScribeFire bug, though.
Looks like there'll need to be a 1.7.0b3 release...

