Introduction    |    Online Demo    |    Pricing    |    F.A.Q.    |    Features    |    Case Studies    |    Documentation    |    Videos    |    Forum
 

Search Engine Internals Reference

 
 

3. Search Results Customization

PM Premium search forms can be customized as described in the last two chapters. You may choose to have same kind of result page for each form, but it is still possible to have result pages in different styles and content. This chapter will describe how to create and customize your result pages.

customizing PM Premium profile search result page

The screenshot above shows a result page. A result page template consists of two parts:

  • temp_page: This is the static part of the page. You can place any explanations, other search options, and links in it.
  • temp_table: This part is a repetitive part that will be used for each profile entry.

Please see "templates/search/t_search.htm" and "templates/search/t_search_table.txt" files.

Creating a new search results page:

1. Add temp_page and temp_table templates from Admin -> Templates -> Add new page. Let's call them search_newone and search_table_newone templates.

A simple search_newone template:
  <html>
    <body>
    Search Results:
    <table border=0>
      <tr>
      <td>Name</td>
      <td>Gender</td>
      <td>Age</td>
      <td>State</td>
      </tr>
      %%search results%%
   </table>
    <a href="javascript:history.go(-1)">back</a> %%next%%
    <p>
    Your search returned %%no of results%% results.
    </body>
  </html>

A simple search_table_newone template:
      <tr>
      <td>%%name%%</td>
      <td>%%gender%%</td>
      <td>%%age%%</td>
      <td>%%state%%</td>
      </tr>

2. Add the configuration into the search form:


   <form action=search.cgi method=get>
   <input type=hidden name=temp_page value=search_newone>
   <input type=hidden name=temp_table value=search_table_newone>
   <input type=text name=in_any size=15 value="">
   <input type=submit name=search value=search>
   </form>

That's all!

Search FAQ

 
  © Copyright 2008 Interlogy LLC. Home | Products | Services | Support | Blog | Contact