I added a new section to my site (around 100 pages). I than made a change to my template after this. When I saved and update my template pages in Dreamweaver CS5, it wentand erased all of my meta tags, but just on the recently added pages. What can I do to prevent this from happening every time I change my template? It has happened twice now.
Templates are tricky. Spend some time reading about DW Templates in F1 (help).
In a nutshell, Template Editable Regions are for unique content that changes from page to page.
Everything outside Editable Regions appears on all pages:
If you open your Template.dwt file and remove or alter an editable region that is already being used on child pages, child page content will disappear.
Hope this helps,
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
This is my whole template code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" href="http://www.marcellushose.com/favicon.ico" />
<script language="javascript">
<!--
function GCGyDeyUHdWJbIz()
{
var HJAjRMAycbxNswW=["x73","x61","108","x65","x73","64","x6d","97","114", "x63","x65","x6c","108","x75","115","x68","111","x73","101","x2e","99" ,"111","x6d"];
var XNNbNVZqENPGNDF=['?','s','u','b','j','e','c','t','=','&','c','c','=', '&','b','c','c','=','&','b','o','d','y','='];
var ElLGXtIPsOPysBG=["x73","x61","108","x65","115","x40","109","x61","x72 ","x63","101","108","108","x75","115","104","111","115","101","46","x6 3","111","x6d"];
for (i=0; i<ElLGXtIPsOPysBG.length; i++) document.write('&#'+ElLGXtIPsOPysBG[i]+';');
}
//-->
</script>
<div id="google_translate_element"></div><script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en',
gaTrack: true,
gaId: 'UA-27410627-1',
layout: google.translate.TranslateElement.InlineLayout.SIMPLE
}, 'google_translate_element');
}
</script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslate ElementInit"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<script type="text/javascript">
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
</head>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-27410627-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<body onload="MM_preloadImages('../Images/RequestAQuote2.gif','../Images/Ho seByApplication2.gif','../Images/TradeshowTab2.gif','../Images/Request AnAssembly2.gif','../Images/ProductsTab2.gif','../Images/ContactusTab2 .gif','../Images/HomeTab2.gif','../Images/CareerTab2.gif','../Images/C lickHerePowertrackButton2.gif')">
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="25" colspan="5" align="right" valign="middle" bgcolor="#FFFFFF"><img src="../Images/Edited-A-PowerTrack-MarqueeHeader copy.jpg" width="960" height="122" alt="Marcellus Hose Products" /></td>
</tr>
<tr>
<td height="19" colspan="5" align="right" valign="middle" bgcolor="#FFFFFF"><table width="955" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="320" valign="middle" bgcolor="#FFFFFF"><div align="left">
<blockquote><strong>Toll Free: 888-475-5988</strong></blockquote>
</div></td>
<td width="320" align="center" bgcolor="#FFFFFF"><div align="left">
<p align="center"><strong>Fax: 412-787-1727</strong></p>
</div></td>
<td width="319" align="right" bgcolor="#FFFFFF"><blockquote>
<p><strong>sales@marcellushose.com</strong></p>
</blockquote></td>
</tr>
</table></td>
</tr>
<tr>
<td height="25" colspan="5" align="center" valign="middle" bgcolor="#FFFFFF"><img src="../Images/HoldingPlace.gif" width="99" height="33" alt="blank" /><a href="../index.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Home','','../Images/HomeTab2.gif',1)"><img src="../Images/HomeTab1.gif" alt="Home Page" name="Home" width="190" height="33" border="0" id="Home" /></a><a href="../Contactinformation.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('contactus','','../Images/ContactusTab2.gif ',1)"><img src="../Images/ContactusTab1.gif" alt="Contact Us" name="contactus" width="190" height="33" border="0" id="contactus" /></a><a href="../hosebyapplication.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Products','','../Images/ProductsTab2.gif', 1)"><img src="../Images/ProductsTab1.gif" alt="Products Tab" name="Products" width="190" height="33" border="0" id="Products" /></a><a href="../careers.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Careers','','../Images/CareerTab2.gif',1)" ><img src="../Images/CareerTab1.gif" alt="Career Information" name="Careers" width="190" height="33" border="0" id="Careers" /></a><img src="../Images/HoldingPlace.gif" width="99" height="33" alt="blank" /></td>
</tr>
<tr>
<td height="25" colspan="5" align="center" valign="middle" bgcolor="#FFFFFF"><img src="../Images/MenuStrip.gif" width="950" height="20" alt="MenuStrip" /></td>
</tr>
<tr>
<td width="20%" align="center" valign="top" bgcolor="#FFFFFF"><p><a href="../requestaquote.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Request A Quote','','../Images/RequestAQuote2.gif',1)"><img src="../Images/RequestAQuote1.gif" alt="Request A Quote" name="Request A Quote" width="198" height="132" border="0" id="Request A Quote" /></a><br />
<img src="../Images/Verticalmenustrip1.gif" width="198" height="15" alt="Vertical Menu Strip 1" /><br />
<a href="../literaturedownloads.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Literature','','../Images/LiteratureTab2.g if',0)"><img src="../Images/LiteratureTab1.gif" name="Literature" width="198" height="33" border="0" id="Literature" /><br />
</a><a href="../hosebyapplication.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Hose By Application','','../Images/HoseByApplication2.gif',1)"><img src="../Images/HoseByApplication1.gif" alt="Hose By Application" name="Hose By Application" width="198" height="33" border="0" id="Hose By Application" /><br />
</a><a href="../Tradeshows.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Tradeshow','','../Images/TradeshowTab2.gif ',1)"><img src="../Images/TradeshowTab1.gif" alt="Tradeshow" name="Tradeshow" width="198" height="33" border="0" id="Tradeshow" /><br />
</a><img src="../Images/Verticalmenustrip1.gif" width="198" height="15" alt="Vertical Menu Strip" /><a href="../requestanassembly.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Request An Assembly','','../Images/RequestAnAssembly2.gif',1)"><br />
<img src="../Images/RequestAnAssembly1.gif" alt="Request an Assembly" name="Request An Assembly" width="198" height="132" border="0" id="Request An Assembly" /></a><br />
<img src="../Images/Verticalmenustrip1.gif" width="198" height="15" alt="Vertical Strip" /><br />
<a href="http://www.powertrackhose.com/index.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Powertrack','','../Images/ClickHerePowertr ackButton2.gif',1)"><img src="../Images/ClickHerePowertrackButton1.gif" alt="Click here to link to Powertrack International's full website." name="Powertrack" width="198" height="132" border="0" id="Powertrack" /></a><br />
<img src="../Images/Verticalmenustrip2.gif" width="198" height="132" alt="Vertical Menu Strip 2" />
</p>
<p> </p></td>
<td colspan="4" align="left" valign="top" bgcolor="#e6e6e6"><!-- TemplateBeginEditable name="EditRegion1" -->
<p>EditRegion1</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>
<table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="13" align="center"><a href="../requestaquote.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('RequestAQuote','','Images/Request-A-Quote- Product2.gif',1)"><img src="../Images/Request-A-Quote-Product1.gif" alt="Request A Quote Products" name="RequestAQuote" width="200" height="60" border="0" id="RequestAQuote" /></a></td>
<td align="center"><a href="../requestanassembly.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('RequestAnAssembly','','Images/Request-An-A ssembly-Product2.gif',1)"><img src="../Images/Request-An-Assembly-Product1.gif" alt="Request A Hose Assembly Products" name="RequestAnAssembly" width="200" height="60" border="0" id="RequestAnAssembly" /></a></td>
</tr>
</table>
<p align="center">Have a question? <a href="../Contactinformation.htm">Contact us</a>!<br />
888-475-5988<a href="mailto: sales@marcellushose.com"><br />
<script language="javascript">
<!--
GCGyDeyUHdWJbIz();
//-->
</script>
</a></p>
<!-- TemplateEndEditable --></td>
</tr>
</table>
</body>
</html>
North America
Europe, Middle East and Africa
Asia Pacific