PmCal-Examples

(redirected from Test.Cjc)

Display the calendar using a text view expiring entries before today and stopping after 10 days. I have adjusted the locale to en_GB for proper date formatting in that locale (assumes you have working locales at your site). Setting reverse=true will give an reverse order display.

(:pmcal cals=PmCal caltype=text locale=en_GB stopafter=10 expire=true monthsahead=1 reverse=true:)

(:pmcal cals=PmCal caltype=text locale=en_GB stopafter=10 expire=true monthsahead=1 reverse=true:)

PmCalendar doesn't have the notion of going out to the last entry (because time is theoretically infinite). So you can look out 5 years (that's the max).

(:pmcal cals=PmCal caltype=text locale=en_GB monthsahead=60 expire=true reverse=true:)

(:pmcal cals=PmCal caltype=text locale=en_GB monthsahead=60 expire=true reverse=true:)

Here's the first example again, this time assuming that locales are broken. So you can manually select the formatting of the date using textdatefmt.

(:pmcal cals=PmCal caltype=text stopafter=10 expire=true monthsahead=1 reverse=true textdatefmt='%d.%m.%y':)

(:pmcal cals=PmCal caltype=text stopafter=10 expire=true monthsahead=1 reverse=true textdatefmt='m.%y':)

The calendar in full month display but starting at Monday, weekstart=1 (0=Sunday).

(:pmcal cals=PmCal locale=en_GB weekstart=1:)

(:pmcal cals=PmCal locale=en_GB weekstart=1:)

The calendar in full with Annivesary (ACAL) entries shown.

(:pmcal cals=PmCal acals=PmCal :)

(:pmcal cals=PmCal acals=PmCal :)

 0: 00.00 00.00 EnablePost = 1, keys=
 1: 00.00 00.00 config start
 2: 00.01 00.01 config end
 3: 00.02 00.02 MarkupToHTML begin
 4: 00.02 00.02 MarkupToHTML begin
 5: 00.02 00.02 MarkupToHTML end
 6: 00.02 00.02 MarkupToHTML begin
 7: 00.02 00.02 MarkupToHTML end
 8: 00.02 00.02 MarkupToHTML begin
 9: 00.02 00.02 MarkupToHTML end
10: 00.02 00.02 MarkupToHTML begin
11: 00.02 00.02 MarkupToHTML end
12: 00.02 00.02 MarkupToHTML begin
13: 00.02 00.02 MarkupToHTML end
14: 00.02 00.02 MarkupToHTML end
15: 00.02 00.02 MarkupToHTML begin
16: 00.02 00.02 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
17: 00.02 00.02 ReadApprovedUrls SiteAdmin.ApprovedUrls end
18: 00.03 00.02 MarkupToHTML end
19: 00.03 00.02 MarkupToHTML begin
20: 00.03 00.03 MarkupToHTML end
21: 00.03 00.03 now
Peak memory: 3,665,480 bytes