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
Quote Reply
Re: error when addin header/footer In reply to
Well, you seem to have the right codes. Could you please provide us a link to your link.html and category.html files, so that we can see them???

BTW: This Mod does WORK...why? I wrote it!

Regards.

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: error when addin header/footer In reply to
Thanks for the suggsetions. Problem was in the location of the header and footer files moved them to the admin dir and it works fine.


------------------
ccunet