Gossamer Forum
Home : Products : Links 2.0 : Discussions :

error when addin header/footer

Quote Reply
error when addin header/footer
 
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
Subject Author Views Date
Thread error when addin header/footer ccunet 1082 Dec 18, 1999, 6:15 AM
Post Re: error when addin header/footer
Eliot 1046 Dec 18, 1999, 8:26 AM
Post Re: error when addin header/footer
ccunet 1047 Dec 20, 1999, 12:16 PM