Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Re: How Do I Add The Same Header To Every Page?

Quote Reply
Re: How Do I Add The Same Header To Every Page? In reply to
You wouldn't need to add anything to that subroutine. You need to scroll back up to the top of the site_html_templates.pl document, and looks for the section like this:
Code:
# You can put variables here that you would like to use in any
# of your templates.

%globals = (
date => &get_date,
time => &get_time,
db_cgi_url => $db_cgi_url,
build_root_url => $build_root_url,
site_title => $build_site_title,
css => $build_css_url,
banner => ''
);

Right before that section, you want to add
Quote:
$site_header = qq|your header html code here|;
and then in the section I posted above, right below the css=> line, add
Quote:
site_header => $site_header,

You don't have to change anything else in this file. However you do have to go into each template where you want the header to show up and add <%site_header%> where you want the header text to be.

Can't do it without editing each template at least that much.

Phoenix
Subject Author Views Date
Thread How Do I Add The Same Header To Every Page? deadiamtheone 2649 Jun 16, 1999, 9:20 PM
Post Re: How Do I Add The Same Header To Every Page?
Bobsie 2536 Jun 16, 1999, 9:59 PM
Post Re: How Do I Add The Same Header To Every Page?
deadiamtheone 2536 Jun 17, 1999, 10:58 AM
Post Re: How Do I Add The Same Header To Every Page?
phoenix 2537 Jun 17, 1999, 11:14 AM
Post Re: How Do I Add The Same Header To Every Page?
Brad Richardson 2534 Jun 17, 1999, 1:17 PM
Post Re: How Do I Add The Same Header To Every Page?
phoenix 2529 Jun 17, 1999, 2:00 PM