[Pmwiki-users] Restrict page searches by date
Tue Apr 27 20:26:06 CDT 2004
I have been asked about limiting searches to 'pages modified since ...',
with the idea that the search form includes radio buttons for
(*) All pages ( ) 90 days ( ) 30 days ( ) 7 days
This appears relatively easy to implement as a local search.php,
although I haven't tried it yet:
modify $SearchTagFmt, extend the $Search array, then
$cutoff = ($Search['days']) ? $Now - 86400 * $Search['days'] : 0;
if ($page['time'] < $cutoff) continue;
It would also be easy to show the modified date ($page['timefmt'])
in the search results, which may be useful in some cases.
I couldn't find any discussion of this in Development or Cookbook.
1. Would others find this useful?
2. Any chance that it could be added to pmwiki as an option?
3. What about alternatives like pages *not* modified since ... ?
4. Has anyone already done this?
More information about the pmwiki-users