On Sat, May 14, 2005 at 10:16:13AM +0200, Thomas Nyman wrote:
> What I did
>
> I read the swish.cgi and copied
>
> {
> # title => 'Search Our Site',
> # swish_index => 'index.web',
> #
> # template => {
> # package => 'SWISH::TemplateToolkit',
> # file => 'search.tt',
> # options => {
> # INCLUDE_PATH => '/home/user/swish-e/example',
> # },
> # };
>
> to my .swishcgi.conf which contained as follows (before I pasted)
>
>
> return {
>
> {
> title => 'Dokument Arkiv',
> swish_binary => '/usr/local/bin/swish-e',
> swish_index => '/Users/medarbetare/Public/index/index.swish-e',
> prepend_path => '/arkiv/'
> }
> }
You are returning a hash containing a single entry, a hash. I would
expect that to generate an error since hashes are key-value pairs.
But maybe not.
You want
return {
title => 'Dokument Arkiv',
swish_binary => '/usr/local/bin/swish-e',
swish_index => '/Users/medarbetare/Public/index/index.swish-e',
prepend_path => '/arkiv/',
# Template options
template => {
package => 'SWISH::TemplateToolkit',
file => 'search.tt',
options => {
INCLUDE_PATH => '/usr/local/share/doc/swish-e/examples',
},
}, # end template block
};
> Odd number of elements in anonymous hash at .swishcgi.conf line 5.
Oh, I guess it does generate an error.
--
Bill Moseley
moseley@hank.org
Unsubscribe from or help with the swish-e list:
http://swish-e.org/Discussion/
Help with Swish-e:
http://swish-e.org/current/docs
swish-e@sunsite.berkeley.edu
Received on Sat May 14 07:16:13 2005