My first BlogEngine widget: daily quotations

Prior to upgrading BlogEngine I had written (actually borrowed/rewritten) a fairly ugly user control to show a daily quotation.  Now that BE 1.4.5 is here, the new widget framework looks pretty nifty.  So I took the LinkList widget and massaged it into something I could use to store and display daily quotes.

My original quotes setup only shows one quote on any given day and uses a datestamp to keep track of this.  I've attached my first pass at a quotation widget below.  This widget picks a quote at random each time the page loads.  However when you edit you will see a date field... eventually I want to make a daily quote as with my original (or perhaps you can choose to display random quotes or to rotate at daily intervals, or even time intervals).  So the date field is there for future use.

The quote is displayed in a div styled with the selector "quotation".  The author/source is displayed in a 2nd div with the style selector "quotation_author".  So you can update your theme stylesheet to modify the appearance of these.


Quotations.rar (4.21 kb)


3/13/2009:  There is an update to the quotations widget.