Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Headers/Footers -- what paths?

Quote Reply
Headers/Footers -- what paths?
Heya! Trying to use headers and footers by category to embed SSI banners and whatnot, but can't find docs on proper paths (from root, from admin script... or?) so I'm not seeing my headers or footers. Old topic to most of you, so any help would be appreciated. Smile
Quote Reply
Re: Headers/Footers -- what paths? In reply to
The paths for your header and footer files for each category are located in the links.cfg file at the bottom of the page:

Code:
$db_header_path = $db_script_path . "/header";
$db_footer_path = $db_script_path . "/footer";

Hope this helps.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Headers/Footers -- what paths? In reply to
OKay... maybe I'm just tired, after installing a number of mods today (ratings, logos, etc.)... but here we go:

Following your example above, I modified the paths as so:
$db_header_path = "$db_script_path/templates/header"; # Place to store header and footers.
$db_footer_path = "$db_script_path/templates/footer";

Then put the folders 'footer' and 'header' inside my templates folder with my respective text files. Each of these is essential nothing more than a snippet of HTML with a table in it, no <HEAD> or <BODY> type tags.

So, then in my admin area, I specify in the category setup panel that for my specific category I will use 'filename.txt" for header, and 'filename.txt' for footer.

All pages are being built as .shtml, but still no juice. When I go to my category page there is no header info.

So.... obviously, the caffeine is wearing off, (Pepsi One...)....

thanks for responses Smile
Quote Reply
Re: Headers/Footers -- what paths? In reply to
You need to add in the header and footer tags into your category.html file.

<%header%>
<%footer%>

Smile

Look at your administrative panel for more information of appropriate tags that you can add to each of your template files. There is a link called,"Template Help and Codes you can use!". CLICK ON IT!

Smile

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited September 06, 1999).]
Quote Reply
Re: Headers/Footers -- what paths? In reply to
Eliot-
thanks for the help. This fixed it.

BTW--my copy of Links 2.0 does not seem to show the link you mention in the admin panel (or I would have printed it out for my cgi-binder by now...);
please specify where I'm not looking ...
thanks again.... Smile

------------------
Christopher Simmons, pres.
Mindset
Quote Reply
Re: Headers/Footers -- what paths? In reply to
The link is located above each of the templates. Click on "Edit Templates", then you will see a drop-down menu, and above it, the link should be there.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Headers/Footers -- what paths? In reply to
Ah. I edit all my templates by hand using either BBEdit (mac), or TextPad (PC).

So, that's why I missed it. Duh.

Thanks for taking the time to help.

------------------
Christopher Simmons, pres.
Mindset