Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error Message - What does it mean?

Status
Not open for further replies.

tinggg

Technical User
May 15, 2004
69
NZ
--------------------------------------------------------------------------------

Hi

I'm creating my first template using DW MX. When I go to save a change after creating an Editable Region I get this message:

You have placed the editable region h2 inside a <p> tag or other block tag. Users of this template will not be able to create new paragraphs in this region. Move the region outside the <p> tag if you wish to allow this.

Any idea what this means and how I fix it?

Thanks for your help

Here's the code on my page:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"<html>
<!-- DW6 -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- TemplateBeginEditable name="doctitle" -->
<title>Resource Advisor</title>
<!-- TemplateEndEditable --><link rel="stylesheet" href="../3col_leftNav.css" type="text/css">
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
</head>
<body>
<div id="masthead">
<h1 id="siteName"><a href="../index.html"><img src="../images/logo2.jpg" alt="Home Page" width="167" height="60" border="0"></a></h1>
<div id="globalNav">
<div align="center"><a href="#">About </a> | <a href="#">global link</a> | <a href="#">global link</a> | <a href="#">global link</a> |
<a href="#">global link</a> | <a href="#">Food </a> | <a href="#">Furniture </a>
</div>
</div>
<h2 id="pageName"><!-- TemplateBeginEditable name="h2" -->h2<!-- TemplateEndEditable --></h2>
</div>
<div id="navBar">
<div id="search">
<form action="#">
<label>search</label>
<input name="searchFor" type="text" size="10">
<input name="goButton" type="submit" value="go">
</form>
</div>
<div id="sectionLinks">
<h3>Section Links</h3>
<ul>
<li><a href="#">Section Link</a></li>
<li><a href="#">Section Link</a></li>
<li><a href="#">Section Link</a></li>
<li><a href="#">Section Link</a></li>
<li><a href="#">Section Link</a></li>
<li><a href="#">Section Link</a></li>
</ul>
</div>
<div class="relatedLinks">
<h3>Related Link Category</h3>
<ul>
<li><a href="#">Related Link</a></li>
<li><a href="#">Related Link</a></li>
<li><a href="#">Related Link</a></li>
<li><a href="#">Related Link</a></li>
<li><a href="#">Related Link</a></li>
<li><a href="#">Related Link</a></li>
</ul>
</div>
<div class="relatedLinks">
<h3>Related Link Category</h3>
<ul>
<li><a href="#">Related Link</a></li>
<li><a href="#">Related Link</a></li>
<li><a href="#">Related Link</a></li>
<li><a href="#">Related Link</a></li>
<li><a href="#">Related Link</a></li>
<li><a href="#">Related Link</a></li>
</ul>
</div>
</div>
<!--end navBar div -->
<div id="headlines">
<h3><!-- TemplateBeginEditable name="Ads" -->Ads<!-- TemplateEndEditable --></h3>
</div>
<!--end headlines -->
<div id="content">
<div class="feature">
<h3><!-- TemplateBeginEditable name="bodytext" -->bodytext<!-- TemplateEndEditable --></h3>
</div>
<div class="story"></div>
</div>
<!--end content -->
<div id="siteInfo"> <a href="#">About Us</a> | <a href="#">Site
Map</a> | <a href="#">Privacy Policy</a> | <a href="#">Contact Us</a> | &copy;2005 Test </div>
<br>
</body>
</html>
 
First off post your code within [ code ] tags, it makes it much easier to troubleshoot.

Now, the problem

Code:
<div id="masthead">
	<h1 id="siteName">
		<a href="../index.html">
			<img src="../images/logo2.jpg" alt="Home Page" width="167" height="60" border="0">
		</a>
	</h1>
	
	<div id="globalNav">
		
		<div align="center">
			<a href="#">About </a> | <a href="#">global link</a> | <a href="#">global link</a> | <a href="#">global link</a> |
<a href="#">global link</a> | <a href="#">Food </a> | <a href="#">Furniture </a>
		</div>
	</div>

	<h2 id="pageName">[COLOR=red]<!-- TemplateBeginEditable name="h2" -->h2<!-- TemplateEndEditable -->[/color]</h2>
</div>

I'm not certain as it's a DW thing, but try putting the editable region tags around the <h2> tags rather than inside them.

So it looks like this

Code:
<!-- TemplateBeginEditable name="h2" --><h2 id="pageName">h2</h2><!-- TemplateEndEditable -->

Not sure if that's the fix, but my quick squint at the code in that area didn't show up anything odd.

Foamcow Heavy Industries - Web design and ranting
Target Marketing Communications - Advertising, Direct Marketing and Public Relations
I wonder what possesses people to make those animated gifs. Do you just get up in the morning and think, "You know what web design r
 
The only place I can see the offending line would be within the <h2> tags rather than <p> tags. The warning is telling you that people using the template will not be able to make other paragraphs (just one line edits or line breaks), because paragraphs within those tags are illegal. If you are ok with that, I suppose you can ignore the warning. Probably this question would be better asked in the Dreamweaver forums (if we have them).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top