From: Chris W. <la...@us...> - 2005-03-02 15:21:56
|
Update of /cvsroot/openinteract/OpenInteract2/pkg/news/OpenInteract2/App In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21616/news/OpenInteract2/App Modified Files: News.pm Log Message: OIN-135: add support to news package for REST URLs, also adding an 'archive' feature to allow you to specify news articles to display by year + month Index: News.pm =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/pkg/news/OpenInteract2/App/News.pm,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** News.pm 1 Mar 2005 03:28:43 -0000 1.1 --- News.pm 2 Mar 2005 15:21:44 -0000 1.2 *************** *** 57,60 **** --- 57,72 ---- Definition for the toolbox with news actions. + B<news_archive_monthly> + + Displays descending date order a count by month of all news stories: + + [% OI.box_add( 'news_archive_monthly' ) %] + + Note that this is only supported by PostgreSQL, MySQL and (possibly) + SQLite. This is only because I'm not familiar with the date parsing + functions available on other databases. (For example, how to select + and group by the year and month of a date field.) If you'd like to add + your DB let me know. + =head1 OBJECTS |