Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-03-07 10:41:16

koobs
Member
Registered: 2008-11-25
Posts: 27

Length of search_result_excerpt

Is there any way to specify the number of words displayed when using <txp:search_result_excerpt />.

You can specify a maximum number of search match excerpts but this will return an arbitrary number of words in the context description.

Offline

#2 2009-03-08 00:33:03

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Length of search_result_excerpt

As far as I know that is not possible. You could use <txp:excerpt / > instead of <txp:search_result_excerpt /> in your search_results form, or rss_auto_excerpt, if you don’t mind that you won’t be able to highlight the search terms.

Offline

Board footer

Powered by FluxBB