http://cgi-resource.co.uk/pages/multcat.shtml
i'm trying to get the Multi Category Templates mod to work -
but it doesn't build the category pages for some reason..
here is the changes I have made....
I hope you can help...
sub site_html_category {
# --------------------------------------------------------
# This rountine will build a page based for the current category.
my $ext = ".html";
if ($cat_template) {
$cattemplate = "$cat_template$ext";
}
else {
$cattemplate = 'category.html';
}
return &load_template ( $cattemplate, {
date => $date,
time => $time,
category => $category,
links => $links,
title_linked => $title_linked,
title => $title,
total => $total,
grand_total => $grand_total,
category_name => $category_name,
category_name_escaped => $category_name_escaped,
category_clean => $category_clean,
description => $description,
meta_name => $meta_name,
meta_keywords => $meta_keywords,
header => $header,
footer => $footer,
prev => $prev,
next => $next,
related => $related,
build_links_per_page => $build_links_per_page,
%globals
} );
}
Footer => [7, 'alpha', 40, 75, 0, '', ''],
Subcats => [8, 'alpha', 0, 255, 0, '', ''],
Template => [9, 'alpha', 40, 75, 0, '', '']
);
# We set up all the variables people can use in &site_html.pl.
($description, $related, $meta_name, $meta_keywords, $header, $footer, $cat_template) = @{$category{$cat}}[2..9];
i'm trying to get the Multi Category Templates mod to work -
but it doesn't build the category pages for some reason..
here is the changes I have made....
I hope you can help...
sub site_html_category {
# --------------------------------------------------------
# This rountine will build a page based for the current category.
my $ext = ".html";
if ($cat_template) {
$cattemplate = "$cat_template$ext";
}
else {
$cattemplate = 'category.html';
}
return &load_template ( $cattemplate, {
date => $date,
time => $time,
category => $category,
links => $links,
title_linked => $title_linked,
title => $title,
total => $total,
grand_total => $grand_total,
category_name => $category_name,
category_name_escaped => $category_name_escaped,
category_clean => $category_clean,
description => $description,
meta_name => $meta_name,
meta_keywords => $meta_keywords,
header => $header,
footer => $footer,
prev => $prev,
next => $next,
related => $related,
build_links_per_page => $build_links_per_page,
%globals
} );
}
Footer => [7, 'alpha', 40, 75, 0, '', ''],
Subcats => [8, 'alpha', 0, 255, 0, '', ''],
Template => [9, 'alpha', 40, 75, 0, '', '']
);
# We set up all the variables people can use in &site_html.pl.
($description, $related, $meta_name, $meta_keywords, $header, $footer, $cat_template) = @{$category{$cat}}[2..9];