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
If you are not using templates, go into site_html.pl and add something like this at the top of the script in the Global section:

Quote:
$site_header = qq|your header html code here|;

That variable is then available for use in any of the site_html.pl subroutines.

If you are using templates, do the same thing in site_html_templates.pl but be sure it is put above the %globals array. Then, in the %globals array, add the following at the top of the list:

Quote:
site_header => $site_header,

You can now use $site_header in any of the site_html_templates.pl subroutines and <%site_header%> in any of the template files.

I hope this helps.
Subject Author Views Date
Thread How Do I Add The Same Header To Every Page? deadiamtheone 1531 Jun 16, 1999, 9:20 PM
Post Re: How Do I Add The Same Header To Every Page?
Bobsie 1481 Jun 16, 1999, 9:59 PM
Post Re: How Do I Add The Same Header To Every Page?
deadiamtheone 1471 Jun 17, 1999, 10:58 AM
Post Re: How Do I Add The Same Header To Every Page?
phoenix 1472 Jun 17, 1999, 11:14 AM
Post Re: How Do I Add The Same Header To Every Page?
Brad Richardson 1476 Jun 17, 1999, 1:17 PM
Post Re: How Do I Add The Same Header To Every Page?
phoenix 1473 Jun 17, 1999, 2:00 PM