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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error message when creating editable regions in a template

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.
Someone in the HTML forum suggested putting the editable region tags around the <h2> tags rather than inside them.

Like below but it didn't seem to work:

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

Any ideas on how I can fix this problem as when I create a web page from the template its not allowing me to add content to the editable regions. No matter what region I make editable this message [the h2 is replaced with whatever I call the editable region] flashes up when I go to save the page. Thanks for your help

Here's the code on my page:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL]
<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>
 
I have not tried doing templates without tables.

But after you do your initial layout. without any regions.

Try this.

Click in the design view where you want the edit region to be at - type a few letters to make sure it is a valid spot (also it serves to expand the spot). Then create a region.

Gut feeling is it will/may give you the same problem. Which leads me to think - try it outside of the DIV tags. But either way you'll need to fool around with it. I don't believe the template needs a table to work with, Div's should work ok.

"Ever stop to think, and forget to start again?"

Stuart
A+, Net+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top