[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
string.
I tried several methods, and none worked:
1. using (:if date {$Today}..:)
!!!pagelist fmt=#futuredates
[[#futuredates]]
(:if date {$Today}..:)*[[{=$FullName}|+]](:if:)
[[#futuredatesend]]
{$Today} is page variable for today's date in form yyyy-mm-dd
2. Using conditional extensions:
!!!pagelist fmt=#futuredates2
[[#futuredates]]
(:if le {$Today} {=EventDate}:)*[[{=$FullName}|+]](:if:)
[[#futuredates2end]]
{$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.
Best,
Hans
More information about the pmwiki-users
mailing list