Search Result Item Customization
When the user performs a search a list pages which satisfy the user's query is displayed.
By default each result list item shows a link to the page, a paragraph describing the page, and the URL (web address) of the page.
It is possible to change which elements are displayed in each item by modifying the search panel to specify the additional options.
This how-to details how this is done.
This tutorial is not a web/html primer and assumes that you already know
how the process of "web surfing" is accomplished (i.e. a browser requests a page from a server which
then returns the page to be viewed), what HTML tags are and how to use them.
If you are not familiar with these concepts please read a basic web/html primer.
In order to tell the search engine what the format of the result list items should be it will be necessary to add an HTML tag to your search panel.
This HTML tag will specify what you want displayed for each page the search finds.
The detailed steps are provided below.
|Available Formatting Options||(top)|
Add the following tag to your search panel:
<input type=hidden name=ds value=1>
value attribute has one of the following values:
|Show title and description|
|Show title and URL|
|Show title only|
|Show description and URL|
|Show description only|
|Show URL only|
When you use a search panel that has been properly set up in this fashion, the items in the list of search results will reflect the above formatting options.
Remember that the input tag above must occur after the search panel's opening
<form> tag and before its closing