Two search forms on a page

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
landarone
Forum Members
Forum Members
Posts: 23
Joined: Tue Jun 24, 2014 9:24 pm

Two search forms on a page

Post 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.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Two search forms on a page

Post by velden »

Are you sure you didn't change the value of the 'name' attribute?

Because you should not change that value.
landarone
Forum Members
Forum Members
Posts: 23
Joined: Tue Jun 24, 2014 9:24 pm

Re: Two search forms on a page

Post 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.
Post Reply

Return to “Modules/Add-Ons”