[pmwiki-users] (:searchresults:) arguments shown on web page
Matt Clinton
mclinton at 65bit.com
Wed Oct 9 03:49:44 CDT 2013
Thanks Petko,
Much appreciated :)
Regards,
Matt Clinton
65bit Software Limited
www.65bit.com
On 9 Oct 2013, at 04:04, Petko Yotov <5ko at 5ko.fr> wrote:
> Matt Clinton writes:
>> I have changed the (:searchresults:) in the Site.Search file to the following:
>>
>> (:searchresults group=-PmWiki,-Site name=-RecentChanges,-AllRecentChanges,-GroupHeader,-GroupFooter,-GroupAttributes :)
>>
>> It is applying the correct filters and working great apart from the fact that all of those arguments are being shown on the web page?
>
> Instead of adding parameters to the (:searchresults:) directive, you can change the default list parameter for the searches. Add this near the end of config.php:
>
> $SearchPatterns['default'] = array(
> 'recent' => '!\.(All)?Recent(Changes|Uploads)$!',
> 'group' => '!\.Group(Print)?(Header|Footer|Attributes)$!',
> 'pmwiki' => '!^(PmWiki|Site)!',
> 'self' => str_replace('.', '\\.', "!^$pagename$!")
> );
>
> See http://www.pmwiki.org/wiki/Cookbook/SearchPatterns .
>
> Note that when you want to search all pages, you need to enter in the search field the parameter list=all after your search terms.
>
> Petko
>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20131009/5a1ba03f/attachment.html>
More information about the pmwiki-users
mailing list