Hello,
Noticed a small bug in the Calendar List plugin. It was not generating
the page name the same way as the calendar prlugin, so if you used a prefix,
the CLP would not pick up the page.
And now a feature request... it would be nice to have the CLP display only
the first n lines, or the page summary, instead of the entire page. We put
meeting minutes into our calendar and that kind of makes the CLP useless :-)
Below is a patch for making the CLP work like the CP.
Thanks,
John Cole
Index: lib/plugin/CalendarList.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/CalendarList.php,v
retrieving revision 1.1
diff -u -r1.1 CalendarList.php
--- lib/plugin/CalendarList.php 18 Nov 2003 19:06:03 -0000 1.1
+++ lib/plugin/CalendarList.php 6 Jan 2004 15:23:11 -0000
@@ -27,7 +27,7 @@
}
function getDefaultArguments() {
- return array('prefix' => '[pagename]',
+ return array('prefix' => '[pagename]' . SUBPAGE_SEPARATOR,
'date_format' => '%Y-%m-%d',
'year' => '',
'month' => '',
@@ -42,7 +42,7 @@
$args = &$this->args;
$date_string = strftime($args['date_format'], $time);
- $page_for_date = $args['prefix'] . SUBPAGE_SEPARATOR .
$date_string;
+ $page_for_date = $args['prefix'] . $date_string;
$t = localtime($time, 1);
$td = HTML::td(array('align' => 'center'));
-------------------------------------
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
|