[pmwiki-users] Capture all pages within date range.

Ben Wilson dausha at gmail.com
Tue May 22 13:59:12 CDT 2007


On 5/22/07, Ben Wilson <dausha at gmail.com> wrote:
> On 5/22/07, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> [...]
> > > Hmm. Is this available now? I upgraded the site using subversion
> > > (Exported revision 2062), but the above does not work. This appears to
> > > be the trunk revision. I believe what you have scratches the itch
> > > perfectly.
> >
> > The exact code I have in the local/Test.NameISOWeek.php file on
> > pmwiki.org is:
> >
> >   <?php
> >     $FmtPV['$NameISOWeek'] =
> >       "strftime('%GW%V', array_shift(DRange(\$name)))";
> >
> > It's working on pmwiki.org, so I'm not sure why it wouldn't
> > be working on your site.  If you just put {2007-05-22$NameISOWeek}
> > into a page, what do you end up getting, if anything?
>
> I get _everything_. What you offer works, but the page list lists all pages:
>
> (:pagelist if="date {$NameISOWeek} {=$Name}" :)

(:pagelist $NameISOWeek={Summary-2007-05-19$NameISOWeek} :)

The above works, but not (:pagelist if="date {$NameISOWeek} {=$Name}"
:). I'm assuming there is nothing I must do to activate the "if"
feature in pagelist.


-- 
Ben Wilson
"Words are the only thing which will last forever" Churchill



More information about the pmwiki-users mailing list