[pmwiki-users] Pagelist {$$option} does not accept page variable value?
Patrick R. Michaud
pmichaud at pobox.com
Thu Mar 22 17:38:43 CDT 2007
On Thu, Mar 22, 2007 at 11:01:41PM +0100, Roman wrote:
> ... Because pagelist directive does not support ranges of PTVs (like
> $:Date={$SevenDaysAgoISO}..{$$TodayISO}) ...
I've been looking at the date range syntax in pagelists a bit
lately. I'm thinking it might be too difficult to get it to
work using a simple $Var=<start>..<end> syntax, because there
are too many conflicts with other things we might want to
match.
However, I'm looking at the following possibilities:
- pages with names between 15 Mar 2007 and 07 Apr 2007
dates=2007-03-15..2007-04-07
- pages where $:Date is between 15 Mar 2007 and 07 Apr 2007:
dates=$:Date,2007-03-15..2007-04-07
Or, as a somewhat different syntax that stays closer to the $Var=...
format, maybe we want something like:
$:Date=date(2007-03-15..2007-04-07)
This of course means we cannot search for variables containing
"date(" directly without having some sort of pattern or special
marker in place, but I don't know that that's a big problem.
It also means we could have other functional comparisons:
$:XYZ=gt(14) all pages where $:XYZ is greater than 14
Or, following along the {(...)} syntax I proposed in another
thread for doing special functions, we might want
$:Date="(date 2007-03-15..2007-04-07)"
or maybe
$:Date=(date 2007-03-15..2007-04-07)
Comments?
Pm
P.S.: I'll answer the {$$var} issue in another thread.
Pm
More information about the pmwiki-users
mailing list