[pmwiki-devel] Pages hidden in search, but allowed to view by every user.
design5 at softflow.co.uk
Wed Feb 21 15:34:52 CST 2007
Wednesday, February 21, 2007, 6:50:17 PM, Yury wrote:
> What is the best way to not have a page show in pmwiki's search results? Only in search results
> and for every user.
you can add pages to the default SearchPattern array, or create a
custom SearchPattern array and use fmt=custom in your searchresults
for instance adding this to config.php will exclude any GroupHeader,
GroupFooter and GroupAttributes pages from the default search results:
$SearchPatterns['normal'] = '!\.GroupHeader$!';
$SearchPatterns['normal'] = '!\.GroupFooter$!';
$SearchPatterns['normal'] = '!\.GroupAttributes$!';
More information about the pmwiki-devel