 | |  |
 |

ecamty
User
Sep 11, 2002, 1:08 PM
Post #1 of 1
(2036 views)
Shortcut
|
|
Integrating InteractiveTools' Search to DB
|
Can't Post
|
|
This may not be the best way around it, but it worked for me. I wanted to add a search to my docbuilder database, and I had I.T.'s Search with me. First off, I had to add a "Search in: <category>" (obviously configured "Search" to search in such category) dropdown before the search text area, which meant jamming a lot of things into the doc_menu, reducing the space abailable onscreen (without scrolling) for the document trees themselves. I wanted the search to be performed only in that category automatically, so after a long time of thinking ways to go around this issue, and having the program perform the search only in that category, I came up with the following: (If you want to see it working, go to www.ecamty.net/manual/ -- It is in spanish, but it works ands shows you what I mean) Modifying ONLY the _doc_menu template: I added the search form, which should look something like this: <form method="GET" action="http://www.yourdomain.com/cgi-local/se/exec/search.cgi" target="content"> <input type="text" name="search" value="" size="15"> <input type="submit" name="perform_search" value="Search"> <input type="hidden" name="skin" value="search_results2.html"> </form> Next, I added a server side include to include a "search in this category" file: <form method="GET" action="http://www.ecamty.net/cgi-local/se/exec/search.cgi" target="content"> <!--#include file="searchhere.html"--> <input type="text" name="search" value="" size="15"> <input type="submit" name="perform_search" value="Search"> <input type="hidden" name="skin" value="search_results2.html"> </form> The file searchhere.html only contains the following: <input type="hidden" name="categories" value="2"> (where "2" is the category number given by the search program) Now place this file in each document group's directory. (eg: /manual/searchhere.html) Next, you have to change the publish extension to .shtml (so it can work). Publish the files (via entering a document and pressing save --- Nice function to add in the next version: A "PUBLISH" button.) Then remove the .html files so the browser only gets the .shtml's, and voila! It works. Im sorry if Im not too clear presenting the idea, but if you need to do this, im sure you'll understand it. I am only writing this as a suggestion so you can get an integrated search form to your DocBuilder. If you have a simpler way, please post it. I am attaching a txt file so you can use the template if you like it. However, I would really appreciate if you did not use the same images on your page.
Here to help! =================== Eugenio B. www.ecamty.net itools@ecamty.net ===================
(This post was edited by ecamty on Sep 12, 2002, 1:02 PM)
|
|
Attachments:
|
sample.txt
(4.24 KB)
|
|
|  |
 | |  |
|