I am trying to reconfigure my site to use the separate category templates, and I am having problems.
I changed the code, as stated above, and created three template files (just took the category.html and added a phrase after the body tag for a test), uploaded the three test html files to my templates directory, uploaded the new site_templates_html.pl file and ran the 'build-all'. Everything went fine.....until I went to view the pages. After the home page, all I get is a blank page with some greek letters in the upper left corner? None of my pages show up, not even the ones that aren't referenced in the 'if' statement. What gives?
The following is the code I put in my site_templates_html.pl file.
Code:
sub site_html_category {
# --------------------------------------------------------
# This rountine will build a page based for the current category.
my $template;
# Set the appropriate template file to load
if ($category_name =~ "Antiques") {
$template = "antiques.html"; }
elsif ($category_name =~ "Antiques/Ancient_World") {
$template = "ancient_world.html"; }
elsif ($category_name =~ "Auctions") {
$template = "auctions.html"; }
else { $template = "category.html"; }
return &load_template ( $template_name, {