Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-08-14 13:45:53

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

set min characters in search field

Is there a way to set a minimum number of characters in the search input field and if someone enters fewer characters to trigger the default error?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#2 2014-08-14 16:12:08

ax
Plugin Author
From: Germany
Registered: 2009-08-19
Posts: 165

Re: set min characters in search field

You can find the solution in the forum, posted by jakob.

Offline

#3 2014-08-14 16:36:07

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: set min characters in search field

Hi ax, thanks for reminding me of that post! I guess am now suffering from the same problems you had. People/bots just enter a digit and press return returning all articles. I have implemented the code and it works just fine.

Thanks again


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB