Hi I’m trying to install the Multiple category mod I found (here)
I followed all the instructions and it goes wrong when I put in this part of the code:
my $ext = ".html";
if ($cat_template) {
$cattemplate = "$cat_template$ext";
}
else {
$cattemplate = 'category.html';
}
I have given all the categories "category" as a template in the database.
So it should be category.html
It actually is.
But the file can't be found according to this error i keep getting.
CGI ERROR ========================================== Error Message : fatal error: Template: Can't find template: /home/fmwebgid/public_html/cgi-bin/admin/templates/category .html at /home/fmwebgid/public_html/cgi-bin/admin/Template.pm line 41.
(which is: -e $file or (&error('NOTEMPLATE', $file) and return undef);
The NOTEMPLATE error as far as I can see)
If I replace "$cat_template$ext" with "category.html" it works as normal.
Can anybody help me solve the problem?
I looked all over the forum and I didn't see similar problems.
Thanks!
I followed all the instructions and it goes wrong when I put in this part of the code:
my $ext = ".html";
if ($cat_template) {
$cattemplate = "$cat_template$ext";
}
else {
$cattemplate = 'category.html';
}
I have given all the categories "category" as a template in the database.
So it should be category.html
It actually is.
But the file can't be found according to this error i keep getting.
CGI ERROR ========================================== Error Message : fatal error: Template: Can't find template: /home/fmwebgid/public_html/cgi-bin/admin/templates/category .html at /home/fmwebgid/public_html/cgi-bin/admin/Template.pm line 41.
(which is: -e $file or (&error('NOTEMPLATE', $file) and return undef);
The NOTEMPLATE error as far as I can see)
If I replace "$cat_template$ext" with "category.html" it works as normal.
Can anybody help me solve the problem?
I looked all over the forum and I didn't see similar problems.
Thanks!