Hi Bill
Within swish.cgi in my cgi-bin, the following lines appear:
...
xtemplate => {
package => 'SWISH::TemplateDefault',
},
xtemplate => {
package => 'SWISH::TemplateDumper',
},
xtemplate => {
package => 'SWISH::TemplateToolkit',
file => 'swish.tt',
options => {
INCLUDE_PATH => '/usr/local/share/swish-e',
#PRE_PROCESS => 'config',
},
},
xtemplate => {
package => 'SWISH::TemplateHTMLTemplate',
options => {
filename => 'swish.tmpl',
path => '/usr/local/share/swish-e',
die_on_bad_params => 0,
loop_context_vars => 1,
cache => 1,
},
},
...
However, it refuses to use the templates, instead uses the Default template.
I don't get any errors.
Regards
Clint
Bill Moseley wrote:
> On Wed, Mar 07, 2007 at 08:25:38AM +0200, Clint wrote:
>
>> I installed Swish-e 2.4.5 as an installation without root access and
>> replaced the swish.tt and swish.tmpl files with the ones from a previous
>> installation (we moved servers recently), but no matter what I do, the
>> results page remains the standard one. If I look inside swish.cgi,
>> situated in the cgi-bin directory, the paths for those templates are
>> correct, but still no luck. Have I missed a step, or how does one get
>> swish-e to use a custom results page?
>>
>
> Are you sure you are looking at the correct script? Are you using
> Template::Toolkit or HTML::Template for your templates? Look at the
> top of swish.cgi and you should see "INCLUDE_PATH" (for .tt) or "path"
> (for .tmpl) -- that's where it's looking for your templates.
>
>
>
_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Thu Mar 8 01:17:15 2007