I'm trying to add header and footer to my links installation. I followed the instructions in the faq as indicated below.
However when I try to include <%site_header%> or <%site_footer%> to my category or home html templates I get an unknown tag error.
I'f appreciate any help.
# You can put variables here that you would like to use in any
# of your templates.
%globals = (
date => &get_date,
Date => &get_date,
time => &get_time,
Time => &get_time,
db_cgi_url => $db_cgi_url,
build_root_url => $build_root_url,
site_title => $build_site_title,
site_header => &site_header,
site_footer => &site_footer,
css => $build_css_url
);
sub site_header {
# -----------------------------------
# This is the header file to insert into your LINKS pages.
open (INC, "/common/winnet/ccunet/WWW/local-cgi/links/header.txt") or return "Can't find include file: header.txt";
return join ("", <INC> );
}
sub site_footer {
# -----------------------------------
# This is the footer file to insert into your LINKS pages.
open (INC, "/common/winnet/ccunet/WWW/local-cgi/links/footer.txt") or return "Can't find include file: footer.txt";
return join ("", <INC> );
}
------------------
ccunet