<div class="gmail_quote">On Thu, Jan 29, 2009 at 2:45 AM, none < <span dir="ltr"><<a href="mailto:bergwitz@gmail.com">bergwitz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
If the code worked on Peter Bowers wiki, why won't it work on ours. Can<br>
somebody else test to see if it's work. Maybe there's something wrong<br>
with our setup somehow?<br>
</blockquote><div><br>Try this:<br><br>===(snip)===<br><br>nowyyyymmdd:{(ftime %Y%m%d)}<br>(:pagelist name=Test.? if="date {*$:nowyyyymmdd}.. {=$:Timestamp}" $:Timestamp=-:)<br><br>(:pagelist name=Test.? if="date {(ftime %Y%m%d)}.. {=$:Timestamp}" $:Timestamp=-:)<br>
<br>(:pagelist name=Test.? if='date ..{=$:Timestamp}' $:Timestamp=-:)<br><br>===(snip)===<br><br>Previously I was using a "name=Test.[A-D]" to limit my pagelist processing to just the 4 files I had set $:Timestamp on. When I broadened it to include pages without that PTV set then my pagelist also included those pages. Now you'll note in each of the examples above that I've included the "$:Timestamp=-" to get rid of pages without a $:Timestamp.<br>
<br>Note that Patrick's solution, the 3rd one above, is the only one that properly handles "recognizable dates". The others recognize only a limited set of formats such as 2009-01-29 or 01/29/2009 but not "January 29, 2009" in the PTV.<br>
<br>-Peter<br></div></div>