Search Field as seen in this site

More
10 years 8 months ago #1121 by Deny
Hi Bram, I hope you are well.

I am trying to add a module that searches by text field as seen in this site www.snowboots.nu/ but i havent been able to combine the search_17 and the Search layout in one.

Basically, When i use the search field e.g, q-converse, when the search result shown i would like the option of dropdown menu selections to keep the search query previously+any submenu i select to drill in the results.

q-converse load the results,
Search module already says, e.g 145 results found and the drop downs changed accordingly
If i want to select the converse items that are in converse but only from MandMdirect merchant for example....

At the moment, if i select the merchant, i lose the converse query i made before.

Desired outcome would be something like www.snowboots.nu/online/q-outdoor/4-Plutosport.html

My site is onlineindirimfirsatlari.com/kampanyalar/q-converse

Thanks in advance

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #1124 by bram
Basicly it's just the form of the searchbox layout added to the search layout:
Code:
<?php $text=JRequest::getVar('q',''); echo '<input name="q" id="searchbox" value="'.$text.'" onblur="if(this.value==\'\') this.value=\'Zoek op Trefwoord\';" onfocus="if(this.value==\'Zoek op Trefwoord\') this.value=\'\';" />'; ?>

depending on your layout you might need to wrap that in a <div> and/or <tr colspan=x><td>


To reset the form add to the reset_datamenu javascript
Code:
selel.form.q.value='';

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago - 10 years 8 months ago #1133 by Deny
Hi Bram, Which lines above i shell add the codes and i guess you can classify me as someone who has not much clue about coding :) I havent been able to figure out the Div and <tr colspan wrappers work after 6-8 attempts... :(
Last edit: 10 years 8 months ago by bram. Reason: it's not very usefull to paste original code.

Please Log in or Create an account to join the conversation.

More
More
10 years 8 months ago #1149 by Deny
I Fixed it with your instructions, many thanks! :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.183 seconds