Template problem with tags moving in child pages
I am having heacdache-inducing problems with Dreamweaver and the templates feature.
I have created updated templates that will be deployed next year, but have had problems with the previous templates as well. I seem to have two problems happening.
The first is where if I save my template file after making changes, for some reason when it updates the child pages, it places
<!-- InstanceBegin template="/Templates/template_gcwebtest_public_e.dwt" codeOutsideHTMLIsLocked="false" -->
at the very start of the document, before <!DOCTYPE html>. This of course causes problems. This occurs without me even needing to open the child pages in Dreamweaver.
The second problem is if I do open a child page in Dreamweaver, for some reason the </head> tag gets moved to before the <!-- InstanceBegin..--> tag. So on the new template it goes at the very start of the document, and on the old template the <!-- InstanceBegin..--> is in a spot that doesn't cause issues, but the </head> tag before it does.
For my new template, this is the "Before" code at the start:
<!DOCTYPE html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en" dir="ltr">
<!--<![endif]--><head>
<!-- TemplateInfo codeOutsideHTMLIsLocked="false" -->
<meta charset="utf-8">
And once I open the child page in Dreamweaver, this is what I get:
</head><!-- InstanceBegin template="/Templates/template_gcwebtest_public_e.dwt" codeOutsideHTMLIsLocked="false" --><!DOCTYPE html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en" dir="ltr">
<!--<![endif]--><head>
<meta charset="utf-8">
The commented [if] code is in the old template and should not affect anything. If someone needs the full code for both tamplates, I can drop them into a post.
Why are these tags moving around? Isn't the point of a template for everything but the editable content to stay put? I am using version CS 5.5, as my department can only license the most recent version from Adobe, and I do not like the newer versions with the poorly implemented Search and Replace (thatt's another discussion).
