Hi,
I want to be able to give each of my categories its own customized detailed.html
I am working in the sitehtml.pm file under sub site_html_detailed section Heres what I have so far and it builds with out any errors:
# Set the template set to use.
my $opts = { dynamic => 1 };
# Find the proper template.
my $viewtemplate;
if ($rec->{Category_Template} and ($rec->{Category_Template} =~ /^jobs/)) {
$viewtemplate = "detailedjobs.html";
}
else { $viewtemplate = "detailed.html";
}
my $output = Links::user_page ($viewtemplate, $rec, $opts);
return $output;
I want it to build from the main default folder templates/default
And I'd just add the templates there like detailedjobs.html
Now I thought that's how you point it to the jobs category but its not working
Could anyone tell me how you point it to the jobs category ???
Thanks
I want to be able to give each of my categories its own customized detailed.html
I am working in the sitehtml.pm file under sub site_html_detailed section Heres what I have so far and it builds with out any errors:
# Set the template set to use.
my $opts = { dynamic => 1 };
# Find the proper template.
my $viewtemplate;
if ($rec->{Category_Template} and ($rec->{Category_Template} =~ /^jobs/)) {
$viewtemplate = "detailedjobs.html";
}
else { $viewtemplate = "detailed.html";
}
my $output = Links::user_page ($viewtemplate, $rec, $opts);
return $output;
I want it to build from the main default folder templates/default
And I'd just add the templates there like detailedjobs.html
Now I thought that's how you point it to the jobs category but its not working
Could anyone tell me how you point it to the jobs category ???
Thanks