|
Cookbook /
ReminderSummary: Birthday, anniversary and other task reminders
Version: 20090302
Status:
Maintainer: Petko
Discussion: Reminder-Talk
DescriptionUse PmWiki to display yearly, monthly and weekly reminders. I use PmWiki to store all sorts of information: notes, code snippets, links, project outlines, document drafts, news (RSS, weather) etc. I need it to also display a list of reminders/birthdays/tasks (weekly, monthly and yearly) on my browser homepage. Installation
include_once("
/* reminder */
ul.reminder {padding: 0px;}
ul.reminder li.date {list-style-type:none; font-weight: bold;
border-top: 1px solid #c00; background-color: #f8f8ff;
margin: 1px; padding: 0px; text-align:right;}
ul.reminder li.date ul {background-color: #fff;
text-align:left;font-weight: normal;
padding: 1px 1px 1px 1em; margin:0;}
ul.reminder li.date ul li {list-style-type:square;}
ul.reminder li.today {border: 2px solid #c00;
border-bottom-width: 1px; background-color: white;
font-size: 1.2em; color:black;}
ul.reminder li.past {color: #777;}
ul.reminder li.future {color: black;}
ul.reminder li.overdue, ul.reminder li.unknown {background-color: #ffa;}
ul.reminder li.w0, ul.reminder li.w6 {background-color: #dfd;}
ul.reminder li.date ul li.multiple {background-color: #f8f8ff;
list-style-type:none; text-align:center;}
In addition to the GNU GPL v.3, this recipe is Postcardware. If you like it or use it, please send me a postcard (info). UsageIn a wiki page, use the markup: or: (:rem pastdays=3 futuredays=11:) Weekly reminders: * w2 A Tuesday reminder * w35 Soccer: Wednesday and Friday Monthly reminders: * 27 %red% '''Pay rent''' %% * 5 Pay cable Yearly reminders: * 19/4/2008 Birthday of the Cookbook.Reminder recipe * 14/7 National holiday in France Multiple days: * 29/4..6/5/2009 Trip to Vienna %item bgcolor=#fee% (:remend:) Note: default is the European way to write dates, "day/month", but you can change this with the variable $ReminderDayMonth, see below. Every day, this wiki page will display all reminders for the past 3 days and for 11 next days, like a tickler file. It can also display a full month with tasks/reminders. Markup parameters
You can change the default values by adding some Admin variables to config.php, see below. Admin variables in config.phpYou can customize the default settings by adding the following lines of code to config.php before including the recipe.
Reminders formatAll reminders are written between
Any line that does not match the above description is considered a comment and is ignored (except for #include). Date: the script recognizes the following date formats:
Time: from version 84Kd, daily reminders are sorted by the time, if a time format is found somewhere in the reminder's title. The script recognizes the following time formats:
The time should be separated from other words by spaces. External data pagesYou can have an external page with headings and sections, containing the reminders in the specified format. Then, with the markup From the same datapage, it is possible to display different categories of reminders on different pages, for example:
You can structure your data page with From version 20080917, you can include multiple other pages or sections with this format between #include Page #include Page#from#to The pages will be included if the visitor has read permissions, and the content will be considered a formatted list of events. AllReminders automatic data pagesIs it possible to place some tag with a date in a wiki page, and this page to appear in the Reminder list? It is possible from version 20080917. You can place in a wiki page such a tag: Reminder: 19/4/1977 [whatever] While saving the page, this line will be added to the special page Site.AllReminders, with a link to the saved page. You can have more than one such lines with different dates/titles; the format is the same as it would be between the In your reminder display, you include Site.AllReminders by adding a line: #include Site.AllReminders Then, when you add a Reminder: tag in a wiki page, it will be displayed in your reminder. You can have more than one AllReminders log page. To have also a per-group AllReminders page, you can set in config.php the following code: $RemindersLogs = array("\To disable logging, add this line after the include_once() install code: unset($RemindersLogs); The AllReminders events are always written, but will be shown if the user has read permissions (like with RecentChanges). On a multi-user wiki, you may wish to add per-group AllReminders pages for each user and protect/lock the Site.AllReminders page. Notes
Release notes / Change logCurrent (recommended) version is 20090302Δ.
See AlsoAuthorCommentsYour comments are welcome at Reminder-Talk.
User notes?: If you use, used or reviewed this recipe, you can add your name. The following format is recognized:
* (+) Optional positive comment. Name, date * (-) Optional negative comment. Name, date These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |