Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-11-14 08:25:47

ultramega
Member
Registered: 2006-02-26
Posts: 221

Search result expcert- amount of displayed text

I know it’s possible to limit how many times searched word is displayed in search result expcerts. But could I somehow limit the amount of all words displayed in expcerts? For example two before and two after the searched word?

Expcerts sure are usefull but they are breaking my layout too :)

Last edited by ultramega (2007-11-14 08:27:19)

Offline

#2 2007-11-14 13:57:03

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: Search result expcert- amount of displayed text

The amount of search context is not determinable by attributes or tags.

We take up to 50 characters surrounding the search term to build the search excerpt. You might want to change that regular expression to a more convenient value if you accept the disadvantages of a non-standard Textpattern instance.

Offline

#3 2007-11-14 14:49:24

ultramega
Member
Registered: 2006-02-26
Posts: 221

Re: Search result expcert- amount of displayed text

Ok, thanks for this info.

Offline

Board footer

Powered by FluxBB