Just following up on this query I sent to the list. Any ideas?
Date: Tue, 30 Apr 2002 10:28:37 +0100
To: Geoff Hutchison <[EMAIL PROTECTED]>
From: Willy Calderon <[EMAIL PROTECTED]>
Subject: Re: [htdig-dev] Stylesheets and Netscape
Cc: [EMAIL PROTECTED]
First, let me thank you for your answer to Question 1.
Question 2 is a bit more fundamental to htsearch and its relation to Document Root. I'm having other issues with the results is generates as well. But now I see they are all related. First let me tell you how the stylesheet is linked. In /opt/www/htdig/conf/htdig.conf, I have configured
common_dir: var/www/htdocs/new/Website/
start_url: `${COMMON_DIR}/index.txt`
search_results_wrapper: ${common_dir}/wrapper.html
template_map: Long long builtin-long \
Short short builtin-short \
Default default ${common_dir}/ccresult.html
template_name: Default
Of course, index.txt has all the HTML file names that are digged and merged as well as the full path of main_stylesheet.css. With Internet Explorer, the stylesheet has no problem, it's only with Netscape.
Now, htsearch appears to be expecting pages & images to be in the Document Root, which is currently configured to be /var/www/htdocs directory. However, the website we have designed is aliased in the /var/www/htdocs/new/Website/ directory. Is there a way to make htsearch put results in this directory?
We have configured Ht://Dig to produce a particular output using the wrapper.html for both header and footer and the results. Although wrapper.html looks fine, it is not what comes out in the htsearch results either. It is looking for this in the Document Root.
Any ideas?
> The style sheet is currently in the {COMMON DIR}/styles/main_stylesheet.css
> and is one of the pages in the start_url/index.txt file.
How do you link to the stylesheet? Remember that the ${COMMON_DIR} is
likely not in your webserver's document root. Also, the results from the
htsearch CGI will usually come back under a URL like /cgi-bin/htsearch...
so that a relative link to the stylesheet will fail.
If you want to have icons or stylesheets or the like come up correctly in
results, you'll need to put them in a shared directory, e.g. /htdig/* in
your webserver root.
> 2) Our website is designed with Dreamweaver and uses style sheets
> (.css). When running the search from the main front page, there is no
> problem with Internet Explorer in pulling up results, but when we tried
> using Netscape 4.7x versions, we found the following error page:
>...
> The style sheet is currently in the {COMMON DIR}/styles/main_stylesheet.css
> and is one of the pages in the start_url/index.txt file.
How do you link to the stylesheet? Remember that the ${COMMON_DIR} is
likely not in your webserver's document root. Also, the results from the
htsearch CGI will usually come back under a URL like /cgi-bin/htsearch...
so that a relative link to the stylesheet will fail.
If you want to have icons or stylesheets or the like come up correctly in
results, you'll need to put them in a shared directory, e.g. /htdig/* in
your webserver root.
--
-Geoff Hutchison
Williams Students Online
http://wso.williams.edu/
**************************************************************************
DISCLAIMER
The contents of this e-mail are not necessarily the policy or
opinion or representative of any policy or opinion of the Authority
or any person employed by it. This transmission is intended only
for the named recipient(s) and is confidential in nature. If received
in error, please return it to the sender and destroy any copies
immediately.
**************************************************************************

