path: root/data/doc/sisu/markup-samples/manual/en/sisu_search_cgi.ssi
diff options
Diffstat (limited to 'data/doc/sisu/markup-samples/manual/en/sisu_search_cgi.ssi')
1 files changed, 25 insertions, 1 deletions
diff --git a/data/doc/sisu/markup-samples/manual/en/sisu_search_cgi.ssi b/data/doc/sisu/markup-samples/manual/en/sisu_search_cgi.ssi
index 9641bea..6197daf 100644
--- a/data/doc/sisu/markup-samples/manual/en/sisu_search_cgi.ssi
+++ b/data/doc/sisu/markup-samples/manual/en/sisu_search_cgi.ssi
@@ -26,6 +26,30 @@
1~search_cgi CGI Search Form
={ SiSU sql:cgi search form; SiSU search:cgi search form;search form }
+For the search form, which is a single search page
+_* configure the search form
+_* generate the sample search form with the sisu command, (this will be based on the configuration settings and existing found sisu databases)
+For postgresql web content you may need to edit the search cgi script. Two things to look out for are that the user is set as needed, and that the any different databases that you wish to be able to query are listed.
+correctly, you may want www-data rather than your username.
+``` code
+_* check the search form, copy it to the appropriate cgi directory and set the correct permissions
+For a search form to appear on each html page, you need to:
+_* rely on the above mentioned configuration of the search form
+_* configure the html search form to be on
+_* run the html command
2~ Setup search form
You will need a web server, httpd with cgi enabled, and a postgresql database to which you are able to create databases.
@@ -40,7 +64,7 @@ sudo su postgres
You then need to create the database that sisu will use, for sisu manual in the directory manual/en for example, (when you try to populate a database that does not exist sisu prompts as to whether it exists):
``` code
-createdb SiSUv6a_manual
+createdb SiSU.7a.manual
SiSU is then able to create the required tables that allow you to populate the database with documents in the directory for which it has been created: