[pmwiki-users] Restricting a pagelist to a range of titles
Vince Administration
vadmin at math.uconn.edu
Wed Sep 16 20:24:41 CDT 2009
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20090916/39209b9e/attachment-0001.html
More information about the pmwiki-users
mailing list