[pmwiki-users] repost: problem with PTV and if= date in pagelists
DaveG
pmwiki at solidgone.com
Fri Jan 30 17:28:42 CST 2009
Peter Bowers wrote:
> In order to get around this problem (note that only English dates will
> be recognized by strtodate()) you need to put your PTV as the last
> argument. Then you also need to check to make sure the PTV is not
> invalid and that the PTV is not blank. Here's something that should
> result in a working system...
>
> (:pagelist name=Test.? if="expr date {(ftime %Y%m%d)}.. {=$:ts} && !
> date INVALID {=$:ts}" $:ts=-:)
Putting single-quotes around the date *might* allow spaced dates to work
(untested):
(:pagelist name=Test.? if="expr date '{(ftime %Y%m%d)}'.. {=$:ts} && !
date INVALID {=$:ts}" $:ts=-:)
Also, I had no idea we could do 'date INVALID {=$"ts}', I also don't
find it anywhere on the wiki. Guess I don't need a date validation
routine now :)
~ ~ Dave
More information about the pmwiki-users
mailing list