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 :)

Peak memory: 1,488,776 bytes