This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > February 2004 > Template Nightmare/Frustration - Any suggestions?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Template Nightmare/Frustration - Any suggestions?
macromedia.com

2004-02-27, 5:28 pm

Hello,

I have one template for a site. No recordsets are attaced to the template.
I placed two SSI tags above the head tag. When I saved the template,
updating the files, all of the associated pages lost their recordsets.

Can anyone tell me what I"m doing wrong here? BTW, it's 94 pages. All
dynamic with different filters applied to the recordsets.

John


Murray *TMM*

2004-02-27, 5:28 pm

Show me the code on the template page please.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"macromedia.com" <johnl@oregonisonline.net> wrote in message
news:c1oa0m$bve$1@forums.macromedia.com...
> Hello,
>
> I have one template for a site. No recordsets are attaced to the

template.
> I placed two SSI tags above the head tag. When I saved the template,
> updating the files, all of the associated pages lost their recordsets.
>
> Can anyone tell me what I"m doing wrong here? BTW, it's 94 pages. All
> dynamic with different filters applied to the recordsets.
>
> John
>
>



Johnl

2004-02-27, 6:28 pm

Murray,

Here you go.

John

<!--#include file="../includes/menuhead.htm" -->
<!--#include file="../Connections/conn_aoi.asp" -->
<!--#include file="../includes/referrer.asp" -->
<html>
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->

<head>
<!-- TemplateInfo codeOutsideHTMLIsLocked="false" -->

<!-- TemplateBeginEditable name="doctitle" -->
<title>Associated Oregon Industries</title>
<!-- TemplateEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- Fireworks MX Dreamweaver MX target. Created Wed Feb 25 14:59:59
GMT-0800 (Pacific Standard Time) 2004-->
</head>
<!--#include file="../includes/menubodytag.htm" -->

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<!-- fwtable fwsrc="Site Layout.png" fwbase="head.gif"
fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
<tr>
<td width="274"><img src="../Expanding/spacer.gif" width="178"
height="1" border="0" alt=""></td>
<td width="461"><img src="../Expanding/spacer.gif" width="284"
height="1" border="0" alt=""></td>
<td width="1"><img src="../Expanding/spacer.gif" width="1" height="1"
border="0" alt=""></td>
<td><img src="../Expanding/spacer.gif" width="55" height="1" border="0"
alt=""></td>
<td width="182"><img src="../Expanding/spacer.gif" width="182"
height="1" border="0" alt=""></td>
</tr>
<tr>
<td colspan="3" rowspan="2"
background="../images/header/headershim.gif"><img name="headermain"
src="../images/header/headermain.gif" width="462" height="91" border="0"
alt=""><img name="headershim" src="../Expanding/headershim.gif" width="1"
height="91" border="0" alt=""></td>
<td colspan="2" background="../images/header/headershim.gif">
<div align="right"><img name="headtopright"
src="../images/header/headtopright.gif" width="237" height="41" border="0"
alt=""></div></td>
</tr>
<tr>
<td width="124" background="../images/header/headshim.gif">
<div align="right"><img name="headlowercurve"
src="../images/header/headlowercurve.gif" width="55" height="50" border="0"
alt=""></div></td>
<td bgcolor="#cccc99"><form action="../dr/searchres.asp" method="post"
name="searchform" id="searchform">
<input name="src_txt" type="text" id="src_txt" size="15">
<input name="submit" type="image" id="submit"
src="../_assets/images/searchButton.gif" width="65" height="16" border="0">
</form></td>
</tr>
<tr>
<td height="300" valign="top"><img name="headbelow"
src="../images/header/headbelow.gif" width="178" height="87" border="0"
alt=""></td>
<td colspan="4" rowspan="2" valign="top"><!-- TemplateBeginEditable
name="Body" -->Body<!-- TemplateEndEditable --></td>
</tr>
<tr>
<td>
<!--#include file="../includes/menumain.asp" -->
</td>
</tr>
</table>
<br>


</html>
<%
rs_image.Close()
Set rs_image = Nothing
%>


Murray *TMM*

2004-02-27, 6:28 pm

John:

That's pretty mangled.

You have no doctype. You have an editable region called head *outside* of
the <head> region.

In addition, your body tag is in an include. And I'm wondering if you have
<html>, <head>, or <body> tags in and of these -

<!--#include file="../includes/menuhead.htm" -->
<!--#include file="../Connections/conn_aoi.asp" -->
<!--#include file="../includes/referrer.asp" -->

You have no closing </body> tag.

I guess it's no wonder that strange things are happening. Is it possible to
address any of that?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Johnl" <johnl@oregonisonline.net> wrote in message
news:c1od1q$g47$1@forums.macromedia.com...
> Murray,
>
> Here you go.
>
> John
>
> <!--#include file="../includes/menuhead.htm" -->
> <!--#include file="../Connections/conn_aoi.asp" -->
> <!--#include file="../includes/referrer.asp" -->
> <html>
> <!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
>
> <head>
> <!-- TemplateInfo codeOutsideHTMLIsLocked="false" -->
>
> <!-- TemplateBeginEditable name="doctitle" -->
> <title>Associated Oregon Industries</title>
> <!-- TemplateEndEditable -->
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> <!-- Fireworks MX Dreamweaver MX target. Created Wed Feb 25 14:59:59
> GMT-0800 (Pacific Standard Time) 2004-->
> </head>
> <!--#include file="../includes/menubodytag.htm" -->
>
> <table width="100%" border="0" cellpadding="0" cellspacing="0">
> <!-- fwtable fwsrc="Site Layout.png" fwbase="head.gif"
> fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
> <tr>
> <td width="274"><img src="../Expanding/spacer.gif" width="178"
> height="1" border="0" alt=""></td>
> <td width="461"><img src="../Expanding/spacer.gif" width="284"
> height="1" border="0" alt=""></td>
> <td width="1"><img src="../Expanding/spacer.gif" width="1" height="1"
> border="0" alt=""></td>
> <td><img src="../Expanding/spacer.gif" width="55" height="1"

border="0"
> alt=""></td>
> <td width="182"><img src="../Expanding/spacer.gif" width="182"
> height="1" border="0" alt=""></td>
> </tr>
> <tr>
> <td colspan="3" rowspan="2"
> background="../images/header/headershim.gif"><img name="headermain"
> src="../images/header/headermain.gif" width="462" height="91" border="0"
> alt=""><img name="headershim" src="../Expanding/headershim.gif" width="1"
> height="91" border="0" alt=""></td>
> <td colspan="2" background="../images/header/headershim.gif">
> <div align="right"><img name="headtopright"
> src="../images/header/headtopright.gif" width="237" height="41" border="0"
> alt=""></div></td>
> </tr>
> <tr>
> <td width="124" background="../images/header/headshim.gif">
> <div align="right"><img name="headlowercurve"
> src="../images/header/headlowercurve.gif" width="55" height="50"

border="0"
> alt=""></div></td>
> <td bgcolor="#cccc99"><form action="../dr/searchres.asp" method="post"
> name="searchform" id="searchform">
> <input name="src_txt" type="text" id="src_txt" size="15">
> <input name="submit" type="image" id="submit"
> src="../_assets/images/searchButton.gif" width="65" height="16"

border="0">
> </form></td>
> </tr>
> <tr>
> <td height="300" valign="top"><img name="headbelow"
> src="../images/header/headbelow.gif" width="178" height="87" border="0"
> alt=""></td>
> <td colspan="4" rowspan="2" valign="top"><!-- TemplateBeginEditable
> name="Body" -->Body<!-- TemplateEndEditable --></td>
> </tr>
> <tr>
> <td>
> <!--#include file="../includes/menumain.asp" -->
> </td>
> </tr>
> </table>
> <br>
>
>
> </html>
> <%
> rs_image.Close()
> Set rs_image = Nothing
> %>
>
>



Johnl

2004-02-27, 6:29 pm

Murray,

Yeah, this is a rather bizarre template...

I have fixed the doctype, and moved the "head" editable region inside the
head.
Additionally, added the closing body tag. That's rather interresting, as
when I initially created the template it was throwing a duplicate body tag
error on the page, even though there are NO closing body tags in any of the
includes. So, as such I removed it from the template file.

Am I wrong in understanding that any includes that I place in the template
regardless of where they are should end up in each page that has this
template applied?

If I add any include to the top of the .dwt file, they do not get updated to
the individual pages. Doesn't make sense to me.

Thanks for bringing to my attention the errors you saw.

John


Murray *TMM*

2004-02-27, 6:29 pm

John:

I suspect the thing that is pushing DW over the edge is the body tag in the
include. That's just not a good thing to do if you want to use DW to edit
your pages.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Johnl" <johnl@oregonisonline.net> wrote in message
news:c1ofvd$jou$1@forums.macromedia.com...
> Murray,
>
> Yeah, this is a rather bizarre template...
>
> I have fixed the doctype, and moved the "head" editable region inside the
> head.
> Additionally, added the closing body tag. That's rather interresting, as
> when I initially created the template it was throwing a duplicate body tag
> error on the page, even though there are NO closing body tags in any of

the
> includes. So, as such I removed it from the template file.
>
> Am I wrong in understanding that any includes that I place in the template
> regardless of where they are should end up in each page that has this
> template applied?
>
> If I add any include to the top of the .dwt file, they do not get updated

to
> the individual pages. Doesn't make sense to me.
>
> Thanks for bringing to my attention the errors you saw.
>
> John
>
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews