Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2012-05-06 11:55:45
- jsrgls
- New Member
- Registered: 2012-05-05
- Posts: 7
[SOLVED] Search problem - match="all" not working
Hello,
I’m using <txp:search_input match="all" />
for my search box, but it still functions as match=“exact”. Does anyone have an idea what the problem could be? I’m using wet_haystack to expand the search to custom fields, and I tried turning it off to see if it was interfering, but there was no difference.
Offline
Re: [SOLVED] Search problem - match="all" not working
Hi Josh
Did you also try <txp:search_input match="any" />
?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#3 2012-05-06 12:36:04
- jsrgls
- New Member
- Registered: 2012-05-05
- Posts: 7
Re: [SOLVED] Search problem - match="all" not working
Hi Yiannis,
Yes, I’ve tried “any” and it doesn’t work either. Only the default “exact”.
Offline
Re: [SOLVED] Search problem - match="all" not working
Can you please post the code you are using for the search?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#5 2012-05-06 14:16:14
- jsrgls
- New Member
- Registered: 2012-05-05
- Posts: 7
Re: [SOLVED] Search problem - match="all" not working
My search_input form looks like this:
<form class="search" name="searchform" id="searchform" method="get" action="<txp:site_url />archives/">
<input type="text" value="" name="q" id="q" placeholder="Search"> <input type="submit" id="qsubmit" value="">
</form>
But I tried using the basic default form too, with the same results.
The search tag is just how I posted it before, <txp:search_input match="all" />
.
I’m using Textpattern version 4.4.1 (r3575).
Offline
Re: [SOLVED] Search problem - match="all" not working
When you use a form, none of the search_input
tag’s attributes do a thing. All of the attributes just add some HTML to the form. As such, when a custom form is used, none of have any effect at all.
The search mode, match
, is controlled by HTTP GET parameter named m
. Adding a hidden input named as m
, would do the same thing as the attribute. I.e.
<input type="hidden" name="m" value="any" />
Offline
#7 2012-05-06 22:09:22
- jsrgls
- New Member
- Registered: 2012-05-05
- Posts: 7
Re: [SOLVED] Search problem - match="all" not working
Kiitos Jukka!
That did the trick :)
Offline