Page 1 of 1

Two search forms on a page

Posted: Fri Oct 16, 2015 8:19 pm
by landarone
Hi there.
I would like to have two search forms on a page.
I found this topic (http://forum.cmsmadesimple.org/viewtopi ... +two+input) but there is only how to give a sequences (numbers) to the INPUT ID.

That is not problem, it works. I have one INPUT with ID "cntnt01searchinput_1" and another with ID "cntnt01searchinput_2".
Problem is that if I click on a submit (button1 or button2 - it doesnt matter) so search module do a search but no results are found.

If I let there basic template search, so there is ID "cntnt01searchinput" (no number) and it works. Results are found. But with different ID no.
My ask for a help is where I can set these IDs for search module? I mean shoud I edit some PHP code or just do it in smarty in search template? Because it looks like that only ID with "cntnt01searchinput" is respected and every other is refused.

Thank you for a advice/help.

Re: Two search forms on a page

Posted: Fri Oct 16, 2015 8:49 pm
by velden
Are you sure you didn't change the value of the 'name' attribute?

Because you should not change that value.

Re: Two search forms on a page

Posted: Fri Oct 16, 2015 9:39 pm
by landarone
Hello Velden.
You are 100% right and I'm.....donkey :)
I changed ID and also NAME (automatic replace), now I see it.

So it works now, thank you for advice.