|
Posted by Adrienne Boswell on 11/19/07 15:31
Gazing into my crystal ball I observed "Mika" <anon@anon.com> writing in
news:rHd0j.49933$c_1.35286@text.news.blueyonder.co.uk:
>> The problems that needs fixing are:
>> line 30 column 1 - Warning: discarding unexpected <head>: you've got
>> 2 head tags on the page
>
> This is actually because SSI is including a top and bottom border,
> which have their own <head> tags, so it appears more than once.
> Strange I know but that's how it seems to do it.
>
>
Then change the include files so that content isn't in there anymore.
This is how I usually structure these things (ASP):
<% option explicit
thispage = "" 'the title of the page
thisurl = "" 'the page url
%>
<!--#include file="linkrel.asp"-->
Linkrel has the following structure:
Doctype
HTML
Beginning of Head
Title (uses the thispage variable)
Meta information (also uses thispage variable)
Stylesheet link
External js
Opens connection to the db
Include for master functions used throughout the site
then...
</head>
<body>
<!--#include file="h1_inc.asp"-->
h1_inc uses thispage variable eg:
<h1><%=thispage%></h1>
then...
<!--#include file="nav_inc.asp"-->
nav_inc has navigation and uses thisurl to determine if the
link should use the .thispage class.
then...
<div id="content">
Page content and other stuff
then...
<!--include file="footer_inc.asp"-->
footer_inc has copyright, legalese, etc., and links to less used
document, eg. privacy and accessibility statements, closes connection to
the db
and...
</div>
</body>
</html>
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Navigation:
[Reply to this message]
|