To get the date from your title, maybe try {(substr "{$Title}" 0 10)}
Next, I'm not sure at all what is to be done ; maybe use ftime ?
If I'm not wrong,
{(ftime "%s" "substr "{$Title}" 0 10")}
outputs the unixtime for example...There is something a bit likely a date range in http://pmwiki.org/wiki/Test/ColorByDate Hope this helps a little bit. 2009/9/17 Vince Administration <[email protected]> > > On Sep 16, 2009, at 9:15 PM, Randy Brown wrote: > > Vince, > > I can imagine that something like (:pagelist if="date {2009-09-16} > {=$Title}" :) might translate my title into a date that I could test for > equality to one desired date, but how would I specify a *range* of dates? > > > Randy, > What I use in a template is: > if="date {$$from}..{$$until} {=$:Date_of_Entry}" :) > The $$variable is filled in from the form. It does work. The Date_of_Entry > is a ptv. > Vince > > > Randy > > On Sep 16, 2009, at 7:57 PM, Vince Administration wrote: > > > On Sep 16, 2009, at 8:16 PM, Randy Brown wrote: > > Simon, > > Thanks for the suggestion. Unfortunately match reg_expression returns true > if current page *name* matches the regular expression - but I want to test > the value of page *title*. > Randy > > Randy, > You might try if=date. You can use the $title variable in this. > Vince > > > > > _______________________________________________ > pmwiki-users mailing list > [email protected] > http://www.pmichaud.com/mailman/listinfo/pmwiki-users > > -- --------------------------------------- | A | de la langue française | B | http://www.languefrancaise.net/ | C | [email protected] ---------------------------------------
_______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
