Home > Support > FAQs > Customizing Search Results page...

      Topic Customizing Search Results page

 Applies_To Web Publisher

    Version 3.x, 4.x, 5.x, 6.x

Last_Update April 6, 2006


Question I use askSam and the Web Publisher. I need to have certain fields that are in our database show up in the search results.  How can I manage that?


Answer Yes, it is possible to customize the search results.


In order to have certain fields appear in the search results page (on the web), you will first need to customize your search in askSam. This can be done by following this -


1. Open the askSam database.  


2. Goto View >> Search Results Properties


3. Click on Columns


4. You can add new fields that you want to have them appear by selecting them and clicking add. You can also remove the unwanted/default fields.


5. At this point we are modifying the "(default)" search result views. However, you also have the option of creating new search views based on your needs. Based on the names that you provide to these newly created search result views, you will need to modify the code in the search page of your website. But if you have not created new search result views and have only modified the "(default)" search results view then you would not have to worry about the change in code.


6. In the search page of your website, you will have to modify the following code -


 <select id="ViewName" name="ViewName">

              <option selected>(default)</option>

            <option>(Summary)</option>

              <option>(Detailed)</option>

              <option>(Entire Page)</option>

</select>



Say for example, I created a new search result view and named it as a "Products" view, then I will add the following code to the above -  <option>Products</option> and so on...


If I just changed the default search result properties, then I won't have to worry about as it appears by default.


Resolution


Quick Downloads

 

How people use askSam

 

Surf Report Newsletter

Subscribe today to receive our FREE monthly newsletter. The Surf Report includes tips, articles, and information about new releases, upgrades, free utilities, and special promotions. Sign up today!


Read Back Issues »
 

"askSam is an essential part of my software tool chest. I can research and collect data from anywhere and any source. Once it is in askSam I can edit, rearrange, organize, and search the information easily. Then I can present it and make it totally useful for other people via the web or CD. Fantastic!"

-- Valda Hilley, Author, Literary Agent, Teaching Consultant, Pack rat, and President, Convergent Press, Ltd.

 

Seaside Software Inc. DBA askSam Systems, 121 S Jefferson Street, Perry FL 32347
Telephone: 800-800-1997 / 850-584-6590   •   Email: info@askSam.com   •   Support: http://www.askSam.com/central.asp
© Copyright 1985-2012   •   Privacy Statement