customizing results page

jdryden
Posts: 5
Joined: Mon Aug 27, 2001 11:20 am

customizing results page

Post by jdryden »

Hi-

I'm using webinator to search individual departmental sub-directories or the index, and what i'd like to do is
allow departments to create their own html search forms, but point to the same script file. This works fine, but i'd like to create some customization of the search script based on what departmental html search form is calling the script. For example, i'd like to customize the script to display a unique department name at the top of the page, instead of the generic banner. Is this possible?

Thanks,
jim
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

customizing results page

Post by Kai »

You could place a hidden variable in each custom form, and have the search script <send> or <spew> a different file based on that variable. Eg.:

<switch $dept>
<case "sales"><spew "/home/httpd/sales.html">
<case "hr"><spew "/home/httpd/hr.html">
</switch>

and place it near or after the code that sends top.html.