Home   Best Sellers   Blogging   Coding & Design   Technology   SEO   Travel & living   Career   Videos   Tips   Calculators     
Home  »     »     »  How to add a customized search box on blogger website and show the result get sorted by date or relevance.

How to add a customized search box on blogger website and show the result get sorted by date or relevance.

Tuesday, February 11, 2014

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.

<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>



How to link to this page?
If you wish to link to this page from your website, simply Copy and paste the above HTML code to your web page. It will appear on your page as:
How to add a customized search box on blogger website and show the result get sorted by date or relevance..




Share this!




comments powered by Disqus

This Weeks 7 Popular Posts


Subscribe to Recent Posts by Email
Stay connected to CROZOOM with regular Email notices of new Techie articles and IT Jobs. Updates will be delivered to your Inbox as soon as they are posted online.

Enter Your Email Address:  

Delivered by FeedBurner   RSS Feed

Search this Blog   



Urgent Openings for PHP trainees, Andriod / IOS developers and PHP developers in Kochi Trivandrum Calicut and Bangalore. Please Send Your updated resumes to recruit.vo@gmail.com   Read more »