[pmwiki-users] How to make search engine in PmWiki display (:title:) instead of page url?

Elias Soong songjl at 163.net
Thu Nov 30 04:39:05 CST 2006


Hans wrote:
> Thursday, November 30, 2006, 5:20:57 AM, Elias wrote:
> 
>> Normally, the search engine in PmWiki list the related pages using the
>> url links of pages. Is there a way to make the search results use the
>> setting in (:title:) if there is any, instead of the url of pages?
> 
> You can configure searchresults just like pagelists:
> You can configure the standard search page Site.Search, and modify
> (:searchresults:):
> 
>     (:searchresults fmt=title:)
> 
> which should display all searchresults as titles.
> Or use your own custom formats, same as for pagelist.
> 
> You could add fmt=title also to the (:searchbox:) markup,
> or have a custom search page for your searchresults.
> 
> Sidenote:
> I am working on documenting Search a bit better, since I think many
> possibilities are easily overlooked.
> 
> 
> Hans

I realized the pagelist mechanism is very useful. I think I should pay 
attention to learn it. Thank you for you suggestion! It helps me so much.

Elias Soong





More information about the pmwiki-users mailing list