[pmwiki-users] Calendar / Event list

Hans design at softflow.co.uk
Fri Mar 31 12:29:58 CST 2006

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

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

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

Can anyone shed any light on why the date conditional does not work
inside pagelist? {(pagelist group=EventGroup fmt=#futuredates :)
returns a list of all pages, disregarding the condition.
Replacing {$Today} with 20060331 does have the same result.

Using conditonal extensions I had a little bit more success:

!!!pagelist fmt=#futuredates2

(:if ge {=$EventDate} {$Today2}:)*[[{=$FullName}|+]](:if:)

{$Today2} is a pagevariable returning today's date in format yyyymmdd,
and {$EventDate} returns the pagename in format yyyymmdd.

(:pagelist group=EventGroup fmt=#futuredates2 :) resulted in a list of
event pages from today. But adding count=1 to get the next event did
not have anything returned, nor did any other count=number.
Why does count not work in these circumstances?
Is count= restricted to certain conditions and can't be used in all


More information about the pmwiki-users mailing list