How to add a customized search box on blogger website and show the result get sorted by date or relevance.
Place customized search box on blogger website and show the search result based on date or relevance.
A typical Search page link on a blogger website looks like this:
http://www.crozoom.com/search?q=YOUR_SEARCH_KEYWORD&search=Search
By default the the search page will load result based on relevance. Sometimes you want the result to be displayed based published date. ie, most recent record will be shown first.
The order of record listing is determined by the GET parameter "by-date", the default value of this is "by-date=false".
To display the records based on date you have to pass this parameter as "by-date=true" and the query will look similar to:
http://www.crozoom.com/search?q=Nurse&by-date=true&search=Search
Below given is the sample code, Copy the script and put it on your blogger website on where you would like to show the search box.
A typical Search page link on a blogger website looks like this:
http://www.crozoom.com/search?q=YOUR_SEARCH_KEYWORD&search=Search
By default the the search page will load result based on relevance. Sometimes you want the result to be displayed based published date. ie, most recent record will be shown first.
The order of record listing is determined by the GET parameter "by-date", the default value of this is "by-date=false".
To display the records based on date you have to pass this parameter as "by-date=true" and the query will look similar to:
http://www.crozoom.com/search?q=Nurse&by-date=true&search=Search
Below given is the sample code, Copy the script and put it on your blogger website on where you would like to show the search box.
<div style='text-align:center'>
<form action="http://www.crozoom.com/search" method="get" target="_blank">
<b>SEARCH WEBSITE:</b>
<input type=text name="q" style="width:180px"/>
<input type=hidden name="by-date" value="true" />
<input type=submit name="search" value="Search" />
</form>
</div>
<form action="http://www.crozoom.com/search" method="get" target="_blank">
<b>SEARCH WEBSITE:</b>
<input type=text name="q" style="width:180px"/>
<input type=hidden name="by-date" value="true" />
<input type=submit name="search" value="Search" />
</form>
</div>