[pmwiki-users] Calendar / Event list

Hans design at softflow.co.uk
Fri Mar 31 05:20:02 CST 2006

Friday, March 31, 2006, 11:40:36 AM, Firefly wrote:

> Can I put after the name=caln.{todaysdate in yyyymm]* or something like that

We need to compare page names as date strings with today's date

I tried several methods, and none worked:

1. using (:if date {$Today}..:)

!!!pagelist fmt=#futuredates
(:if date {$Today}..:)*[[{=$FullName}|+]](:if:)

{$Today} is page variable for today's date in form yyyy-mm-dd

2. Using conditional extensions:

!!!pagelist fmt=#futuredates2
(:if le {$Today} {=EventDate}:)*[[{=$FullName}|+]](:if:)

{$EventDate} returns the ISO date string from the page name, which
would be the same as the page name if the name has the format
yyyy-mm-dd or yyymmdd.

but somehow the date conditional and the number comparison conditional
did not work inside pagelist.


More information about the pmwiki-users mailing list