SimpleBlog entries in CMFCalendar
By default, CMFCalendar only shows 'Events'. With a surprisingly little amount of tweaking, it will also show your blog entries!
Step One: portal_calendar
To tell CMFCalendar, what types of objects to consider, visit /portal_calendar/manage_configure of your Plone instance and select additional types. In this case command/string-click onto BlogEntry.
Step Two: adding start() and end() to BlogEntry.py
Next, we need to add two trivial methods to the BlogEntry class. This needs to be done on the filesystem of your server and not within the Zope instance!
Fire up your favourite editor and point it to <products-dir>/SimpleBlog/BlogEntry.py and add the following two methods:
def start(self):
return self.creation_date
def end(self):
return self.creation_date
Step Three: There is no Step Three!
Well, you will need to restart your zope instance. But from then on, the dates of your new blog entries will be marked in the calendar. Voila!
