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.
The paths for your header and footer files for each category are located in the links.cfg file at the bottom of the page:
$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
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
Sep 6, 1999, 4:15 PM
Novice (7 posts)
Sep 6, 1999, 4:15 PM
Post #3 of 7
Views: 2073
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
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
You need to add in the header and footer tags into your category.html file.
<%header%>
<%footer%>
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!
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).]
<%header%>
<%footer%>
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!
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).]
Sep 7, 1999, 1:01 PM
Novice (7 posts)
Sep 7, 1999, 1:01 PM
Post #5 of 7
Views: 2078
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....
------------------
Christopher Simmons, pres.
Mindset
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....
------------------
Christopher Simmons, pres.
Mindset
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
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