On Tue, May 22, 2007 at 02:35:38PM -0400, Ben Wilson wrote: > On 5/22/07, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > [...] > >> However, I want to have a page (Summary-2007W21) list all journal > >> entries for that week. Each week, there will be a new summary page. In > >> six months, a visitor should be able to visit Summary-2007W21 and see > >> the same pages as they would this week. > > > >Okay, then > > > > (:pagelist if="date {(ftime %GW%V {*$Name})} {=$Name}" :) > > > >which returns all of the pages where the name is in the same > >week as that of the current page. > > Spot on! > > [...] > > > >Even simpler would be to make it a page variable instead of a > >page text variable: > > > > $FmtPV['$NameISOWeek'] = > > "strftime('%GW%V', array_shift(DRange(\$name)))"; > > ... > > > >See, as an example, http://www.pmwiki.org/wiki/Test/NameISOWeek . > > 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? Pm _______________________________________________ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users