Gossamer Forum
Home : Products : Links 2.0 : Customization :

Header and Footer Question

Quote Reply
Header and Footer Question
I've got the script up and running and it works great!

Now I want to integrate it into my site.

Other than spending a few hours going through all of the templates and adding the hdr and ftr html to them, is there an EASY way to setup a generic hdr and ftr for ALL pages used by the script?

I've read a few of the posts on using the hdr.txt and ftr.txt and assigning them through the category setup but I must have done something wrong as it didn't work for me. In any event though I assume this will only work for the category listing pages and not the homepage, cool page etc?

Any advice would be appreciated.
Quote Reply
Re: [paulspell] Header and Footer Question In reply to
This thread may help:

http://www.gossamer-threads.com/...oter%20Bobsie;#74555

Alternatively, if you have SSI enabled in your website, all you have to do is build your Links 2.0 pages with .shtml or .html (depending on which extension is enabled for SSI), and use the following SSI directive:

Code:
<!--#include virtual="/relpath/header.txt"-->
<!--#include virtual="/relpath/footer.txt"-->

in the category.html and home.html templates.
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Stealth] Header and Footer Question In reply to
Spot on, this is exactly what I want.

Thank you.
Quote Reply
Re: [paulspell] Header and Footer Question In reply to
Great...glad it helped.


FYI...for those using other web programming languages, you can use the following codes in your template files built with the following extensions:

COLDFUSION (.cfm, .cfml)
<cfinclude template="/relpath/header.cfm">
<cfinclude template="/relpath/footer.cfm">

- of course, pending that you have Mappings enabled for the "relpath" folder.

PHP (.php, .php3, .php4)
<?require_once('relpath/header.php');?>
<?require_once('relpath/footer.php');?>
========================================
Buh Bye!

Cheers,
Me

Last edited by:

Stealth: Aug 14, 2003, 9:15 PM