 |

Ferry
User
Jan 6, 2005, 10:20 AM
Post #1 of 2
(2678 views)
Shortcut
|
Hi, I am running the search engine on a company intranet for about two years and it is setup to search the complete web site. Now I need to make a separate search for a special sub site on the same server. I copied the SE files to a 2nd directory within the CGI bin and made a new result template. I also updated the config in this directory. When running a search I receive the following error: “Cache-Control:no Pragma: no-cache Expires: -1 Content-type: text/html” Program Message TemplateCell: Template cell ‘search_form’ is not defined. Ok When replacing the template with the one I already use the search works fine. Does anyone know what I am doing wrong? Thank you, Ferry
|
|
|  |
 |

Cliff
Staff

Jan 6, 2005, 4:18 PM
Post #2 of 2
(2675 views)
Shortcut
|
Hi Ferry, Thanks for posting. This error usually occurs because the template cell in the search_results.html file has been removed. To fix this problem, open up the search_results.html template file in an HTML/text editor of your choice. Make sure the following code (the entire code) is included within the HTML of the template file:
<!-- templatecell : search_form --> <form method="get" action="$_cgisearchurl$"> <input type="text" name="search" value="$search_he$" size="32"> <input type="submit" name="perform_search" value="Search"> <input type="hidden" name="categories" value="$categories_he$"> <input type="hidden" name="search_mode" value="$search_mode_he$"> <input type="hidden" name="search_what" value="$search_what_he$"> <input type="hidden" name="case_sensitive" value="$case_sensitive_he$"> <input type="hidden" name="rows" value="$result_rows_he$"> <input type="hidden" name="format" value="$format_he$"> <input type="hidden" name="skin" value="$skin_he$"> </form> <!-- /templatecell : search_form --> You can also refer to your original (unmodified) search_results.html template file for this code, and simply just copy and paste the appropriate code from the old template file to your existing one. When modifying the template files it's important not to remove any of the <!-- templatecell --> code, this code is unique code that is used by the program to determine the placement and output of data. Additionally, it's also a good idea to make backups and test often, therefore, if you do happen to make an error you can always revert back to a back up you made 5 minutes ago. I hope that helps, but if you need any more details just let me know Regards, Cliff Stefanuk - Customer Service Manager support@interactivetools.com
|
|
|  |
 | |  |
|