Bobsie,
Ok I iused the multiple categories mod and changed it around. What I'm doing is calling the following sub from add.cgi to go to the correct add form depending on the category:
Code:
sub site_html_add_get {
# --------------------------------------------------------
# This routine determines which Add form sub to use.
#
&html_print_headers;
my $template;
if ($category_name =~ "Teams/Novices") {
$template = "add-books.html"; }
else { $template = "add.html"; }
print &load_template ( $template, {
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,
address => $address,
city => $city,
state => $state,
%globals
} );
}
It doesn't work. It brings up the regular add.htmll template and for the category it is suppoesed to hard code, I get this in that field:
Code:
Unknown Tag: Category
Any suggestions. Thanks in advance.
------------------
James L. Murray
VirtueTech, Inc.
www.virtuetech.com