close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Bug? Inserting into a Template with an Editable Head Section Causes Error

Thread began 11/21/2009 9:44 pm by Rich Petersen | Last modified 11/30/2009 7:44 pm by Eric Mittman | 2744 views | 8 replies |

Rich Petersen

Bug? Inserting into a Template with an Editable Head Section Causes Error

Hello!

I think I encountered a bug.

I have a template with an editable head section. When I insert a CSS Menu, it inserts another editable region withing my editable head region. When I save the template, it generates the attached error.

To correct, I had to remove MY editable region. If I removed yours, the template would not update the child pages. So I deleted my editable region, and when I updated, I had my stuff move to yours.

Here is the generated head section that causes the error:



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<!-- TemplateBeginEditable name="head" -->
<head>

<title>Teacher's Lunchbox</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../lunchbox.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../CSSMenuWriter/cssmw/menu.js"></script>
<style type="text/css" media="all">
<!--
@import url("../CSSMenuWriter/cssmw/menu.css");
-->
</style>
<!-- TemplateBeginEditable name="menu_ie" -->
<!--[if lte IE 6]>
<style type="text/css" media="all">
@import url("../CSSMenuWriter/cssmw/menu_ie.css");
</style>

<![endif]-->
<!-- TemplateEndEditable -->
</head><!-- TemplateEndEditable -->

<center>

Sign in to reply to this post

Eric Mittman

I have done some testing on this with the latest version of CSS Menu Writer (2.0.3) in DW CS3 on Win XP. When I did this I can confirm that there is an editable region that is created for the menu_ie stuff, but I could not get it to create this area within the head editable region on my template. Please post back with some more info about the version of DW, the OS you are using and any other details you can think of about the process you used to apply the menu to the template.

I will do some more testing to see if there is an issue under certain circumstances that may cause this.

In my template the editable head region ends before any of the Menu Writer code begins.

Sign in to reply to this post

Rich Petersen

Hello Eric,

I'm running Windows 7 Ultimate, Deamweaver CS4 both with full patches/updates.

I had a template, without any menus (just images that linked to pages). Then as the website expanded for the next rev, there were a bunch of pages to be added, so I inserted the menu using CSS Menu Writer 2.02

I will retry using 2.03 and let you know. It's not a big deal for me, I was able to get around it, but am more than happy to provide what info I can if it is a bug and not just me being an idiot...

If it happens again, I will zip up my template and supporting files and get them to you so you can test on your end. Maybe my template is banged up somehow.

Rich

Sign in to reply to this post

Rich Petersen

Eric,

Yep, still does it with 2.03. I uninstalled and reinstalled the extension as required and also deleted my cache file before trying.

Head section before insert:

----------------------------------------------------

<!-- TemplateBeginEditable name="head" -->
<head>

<title>Teacher's Lunchbox</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../lunchbox.css" rel="stylesheet" type="text/css"></head><!-- TemplateEndEditable -->
----------------------------------------------------

Head section after insert and which generates the error:


----------------------------------------------------
<!-- TemplateBeginEditable name="head" -->
<head>

<title>Teacher's Lunchbox</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../lunchbox.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../CSSMenuWriter/cssmw/menu.js"></script>
<style type="text/css" media="all">
<!--
@import url("../CSSMenuWriter/cssmw/menu.css");
-->
</style>
<!-- TemplateBeginEditable name="menu_ie" -->
<!--[if lte IE 6]>
<style type="text/css" media="all">
@import url("../CSSMenuWriter/cssmw/menu_ie.css");
</style>

<![endif]-->
<!-- TemplateEndEditable -->
</head><!-- TemplateEndEditable -->

----------------------------------------------------

I have to go take my wife somewhere right now, but will upload my tempate when I return. I wanted to get you this info before I left.

Rich

Sign in to reply to this post

Eric Mittman

Thanks for the update on this, please post back with the template when you are able to and I will do some additional testing to try and determine what may be going on.

Sign in to reply to this post

Rich Petersen

Here you go.....I was removing the image based menu and replacing it with a CSS Menu. So what I did was remove the images that make up the last row in the table, merged the cells, and then inserted a CSS menu with menuwriter.

Attached Files
maintemplatepage.zip
Sign in to reply to this post

Eric Mittman

Thanks for the template file, I was able to reproduce this issue just as you have stated. I did some investigating and I have found the problem, it is the way that you have your editable region for the head setup, currently you have it like this:

html:
<!-- TemplateBeginEditable name="head" --> 
<head>
</head><!-- TemplateEndEditable -->



If you update it so that the head tags are outside of the editable region then this will not happen, like this:

html:
<head>
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
</head>



When I create a template from within DW it seems to default to having the head tag outside of this editable region. So long as you have the head tags outside the region it should work as expected for you. Let me know if you have any other problems with this.

Sign in to reply to this post

Rich Petersen

Ah, makes sense...

Very good Eric, thanks alot.

Love it when a mystery is solved....haha

Thanks again...

Rich

Sign in to reply to this post

Eric Mittman

Sometimes the solution lies in the problem itself, literally. :)

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...