[pmwiki-users] confused about site.localtemplates

Crisses crisses at kinhost.org
Sat Oct 28 22:49:42 CDT 2006


On Oct 28, 2006, at 11:36 PM, dso wrote:

> I want to change the search results to remove some items from the
> listing like RecentChanges and WikiSandbox.  I found the instructions
> for setting up site.localtemplates a bit confusing.
>
> I have in Site.LocalTemplates one line:
>
> (:searchresults -WikiSandbox -RecentChanges:)
>
> Which shows exactly what I want right after I save that page.
> However when I perform a search again it has no effect.
>
> Daniel

That page is not for search results.  If you look at Site/ 
PageListTemplates -- it's for creating custom templates or overriding  
the default templates on PageListTemplates.

To remove items from search results, you put the commands in the  
searchbox:

(:searchbox -WikiSandbox -RecentChanges:)

or something like that.

This would go in Site/Search, or wherever you want a searchbox on  
your site.

PageListTemplates is to define the fmt=#name  you might see in the  
searchbox or pagelist commands.

Crisses




More information about the pmwiki-users mailing list