Compatible with DokuWiki
Greebo
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Datefilter filters lines which are in the past. The date is recognized with a simple configureable pattern (e.g. yy-mm-dd). The first found date in the line is deciding. You can have a default pattern and/or specify it at every datefilter. As a result you can realize a simple calendar. The syntax can be localized - completely. English and German is available.
Andreas and Esther for the work they are doing and especially for trying to help others.
Simply add around your table with all your dates. Optional you can add a specific dateformat.
<datefilter> ... </datefilter>
<datefilter dateformat> ... </datefilter>
Year, month and date must be specified with two letters! If you want to use four digits for the year you should have a look at the examples.
<datefilter> ^date^business appointment^ |06-11-20|DokuWiki presentation| |06-11-21|DokuWiki training course| </datefilter>
Here is the default English filter (yy-mm-dd) used. The result on 06-11-21 is:
date | business appointment |
---|---|
06-11-21 | DokuWiki training course |
<datefilter 20yy/mm/dd> ^date^business appointment^ |2006/11/20|DokuWiki presentation| |2006/11/21|DokuWiki training course| </datefilter>
Result on 06-11-21:
date | business appointment |
---|---|
2006/11/21 | DokuWiki training course |
<datumfilter> ^Datum^Geschäftstermin^ |20.11.06|DokuWiki Präsentation| |21.11.06|DokuWiki Schulung| </datumfilter>
Ergebnis am 21.11.06
Datum | Geschäftstermin |
---|---|
21.11.06 | DokuWiki Schulung |
<datumfilter tt.mm.20jj> ^Datum^Geschäftstermin^ |20.11.2006|DokuWiki Präsentation| |21.11.2006|DokuWiki Schulung| </datumfilter>
Ergebnis am 21.11.06
Datum | Geschäftstermin |
---|---|
21.11.2006 | DokuWiki Schulung |
$lang['kwpattern'] = 'datumfilter'; // define the wiki syntax keyword $lang['default'] = 'tt.mm.jj'; // default pattern if none is specified $lang['day'] = 't'; // short: day $lang['month'] = 'm'; // short: month $lang['year'] = 'j'; // short: year
Search and install the plugin using the Extension Manager.
Have a look at the DokuWiki plugin configuration.
This product is released under the GPL 2
Sometimes you have an end date until then you wish to show the entry. Now this entry would disappear, when first day of the period passed.
begin | end | description |
---|---|---|
10.04.10 | 14.04.10 | Visit grandma |
… workaround: avoid the correct expression of the first date (assume dd.mm.yy):
10.04. | 14.04.10 | Visit grandma |
Quickly hacked extension to the plugin, that can filter date either before or after today, instead of only before today. SourceCode (not available anymore)
just use the optional keywords “aftertoday” or “beforetoday” before giving an (also optional) dateformat (“vorheute” and “nachheute” in the german translation)
<datefilter [aftertoday|beforetoday] dateformat> ... </datefilter>