Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

help with inconsistent region names

Participant ,
Mar 13, 2022 Mar 13, 2022

I have made some changes to the template that I use on all pages of my web site, but now as I try to apply the new version of the template to existing pages to update them with the changes, I get this error:

Screen Shot 2022-03-13 at 11.30.15 PM.pngI have no idea how to begin to resolve this because I don't understand what it's telling me. There are some options to choose from in the dropdown "Move content to new region," but I don't know what those mean. I've made earlier changes to the template and when I saved it, I would choose to update the pages, but I've never gotten this error before.

 

I'm a real novice in using Dreamweaver, so please give me step-by-step instructions on how to proceed. Thanks.

TOPICS
Code , How to
1.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 13, 2022 Mar 13, 2022

without seeing exactly what you did, as a modification, it's hard to say... but it's not an error dialog, it's a normal and useful dialog that appears when we made an heavy change to the template, it allows us to be able to redirect the content as it should, when an ambiguity occurs...
Normally from the information required, I would say BODY should go to BODY, and HEAD to HEAD... but again, we would need to know the changes you made... in fact, know the DWT before and the DWT after.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 14, 2022 Mar 14, 2022

When you say you made changes to Template, is it a proprietary .dwt file? 

 

Are templates saved as .dwt file to your site's Templates folder?  This is critical for Templates to work.

 

Do all child pages have the same Editable Region names as your Template?  This is also critical.

 

I have seen problems occur when people try to nest one Template inside another Template.  For many reasons, this practice should be avoided.  Nested templates only make your life more complicated. 

 

For better answers, we need to see the code from your Template and the child page you're trying to populate.  The best way to do that is with a URL to your online site.

 

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 21, 2022 Mar 21, 2022

@Nancy OShea wrote:

When you say you made changes to Template, is it a proprietary .dwt file? 

The templates all have the .dwt file extension. 

Are templates saved as .dwt file to your site's Templates folder?  This is critical for Templates to work.

Yes.

Do all child pages have the same Editable Region names as your Template?  This is also critical.

I don't understand Editable Regions or how they are created, so I can't answer that.

For better answers, we need to see the code from your Template and the child page you're trying to populate.  The best way to do that is with a URL to your online site.

I've provided the URLs for two files: the template and I guess what you called a child page. The child page used a previous version of the template prior to recent revisions that created the problem. Now I can't apply the template to this page (or any others).

 

https://boonerta.org/members_only_index.html

https://boonerta.org/GOOD%20basic_template.dwt

Thanks for your help.

 


 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 21, 2022 Mar 21, 2022

Following my previous comment, now we can see the structure and construction of your model

 

However, in order to best help you with the dialog you get when updating a new child, I will need to know what change you made to the DWT.

 

For information, when you open the DWT sent...
you have on line 16, 17 and 18 the following code

<!-- TemplateBeginEditable name="doctitle" -->
<title>Boone County Unit &#8212; MRTA</title>
<!-- TemplateEndEditable -->

this mean that each child page from this template will be able to change the title of the page

from line 267 to 280, all code in beween the comment will not belong to the DWT but to the child page... and so can be completly editable, removable, whatever you want

<!-- TemplateBeginEditable name="ContentArea" -->
<div id="mainContent">
  <p align="center">Insert</p>
  <p align="center">&nbsp;</p>
  <p align="center">&nbsp;</p>
  <p align="center">&nbsp;</p>
  <p align="center">content</p>
  <p align="center">&nbsp;</p>
  <p align="center">&nbsp;</p>
  <p align="center">&nbsp;</p>
  <p align="center">&nbsp;</p>
  <p align="center">here</p>
</div>
<!-- TemplateEndEditable -->

the comment are displayed by the starting and ending comment signs <!-- and -->

<!--   HERE IS AN HTML COMMENT   -->

 

In the last comment, you can see that it is a TemplateBeginEditable, and that the name is ContentArea

That do mean that it is an editable region which has the name  ContentArea

 

and that's it... you just have an Editable Title and a unique editable region for each child page from that template

 

question.... what did you change to this DWT template to get the dialog box that you posted in our very first comment.

Knowing that we could help you more... but already, I would say document body to BODY and document head to HEAD... try the drop-down menus and see what they propose

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 21, 2022 Mar 21, 2022

on the members_only_index.html file, you should add after line 313 and just before line 314, the ending edit comment

<!-- TemplateEndEditable -->
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 21, 2022 Mar 21, 2022

Please consult the DW User Guide for details on working with Template Editable Regions.

https://helpx.adobe.com/dreamweaver/using/creating-editable-regions-templates.html

 

 

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 21, 2022 Mar 21, 2022

anyway, you should reapply the template to your child page, so will get probably again the dialog box...

you have plenty errors in betwwen child end template

 

first in the template

line 20 you have a opening comment, and it need to be removed

 

now in the child page

line 61 the propety height differs from the template, 450 px instead of 600px

line 103 you get two hashtags in front of the color value, only one is needed

line 122 the color value differ #ffffff instead of #003300

line 124 to 18 shouldn't be there (so have to be removed)

line 144 shouldn't be there (so has to be removed)

line 165 the color value differ#0033ff instead of #9932CC

line 168 the color value differ #0033ff instead of #009933

 

line 224 from child

<p align="center"><img src="/Images/old school clip art.jpeg" alt="image of an old country schoolhouse" width="199" height="199" /></p>

differs from line205 of template

<p align="center" class="style2"><img src="/Images/old school clip art.jpeg" width="200" height="200" alt=""></p>

 

line 227 from child

<!-- end #header-->

differs from line 209 of template (spaces at the end of the comment)

<!-- end #header -->

 

line 242, the attribute style="color:purple" was removed and should'nt

 

lines 327 to 342 from child

<!-- begin #footer -->
<div align="center">
<p><h3>Copyright &copy; 2008-2022 Boone County Unit &#8212; MRTA</h3>All rights reserved</p>
<p> For problems with this Web site, contact the <a style="color:white" href="mailto:webmaster@boonerta.org">Webmaster</a>.</p>
<p>
<a style="color:white" href="http://www.snakeyewebtemplates.com" target="_blank" title="Free Dreamweaver Web Templates">Dreamweaver Web Templates</a>
</p>
<p>
<a href="http://www.bannerzrusgraphics.com" style="color:white">Some Graphics from Bannerzrusgraphics.com</a></p>
<br>
</div>
<!-- end #footer -->
</div>
</body>
<!-- end #container -->
</html>

 

differs from line 294 to 309 from template... and shouldn't

<!-- begin #footer -->
<div id="footer" align="center">
<p><h3>Copyright &copy; 2008-2022 Boone County Unit &#8212; MRTA </h3></p>
<p><h3>All rights reserved</h3></p>
<p class="style3"><h3>For problems with this Web site, contact the <a href="mailto:webmaster@boonerta.org">Webmaster</a>.</h3></p>
<p>
<a href="http://www.snakeyewebtemplates.com" target="_blank" title="Free Dreamweaver Web Templates" style="color:white">Dreamweaver Web Templates</a>
</p>
<p>
<a href="http://www.bannerzrusgraphics.com" style="color:white">Some Graphics from Bannerzrusgraphics.com</a></p>
<p></p>

<!-- end #footer --> </div>
<!-- end #container --></div>
<!-- end #body --></body>
</html>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 21, 2022 Mar 21, 2022

In short, start over.  Your Template is broken. 

 

Read the DW articles on Templates. 

Post back if you have any questions.

 

 

 

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 21, 2022 Mar 21, 2022
quote

In short, start over.  Your Template is broken. 

By @Nancy OShea

 

nope the template is not broken, three steps to correct the trouble should be enought

 

  1. just a comment starting block that is lying around and needs to be removed (line 20)
  2. reapply the template to the child page
  3. relocate the editable region if needed (dialog box)

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 21, 2022 Mar 21, 2022

I'm sorry to be in disagreement with you but taken as a whole, the Template is broken. 

 

If that's not broken, I don't what else to call it. D:

 

CODE TUTORIALS:
- https://www.w3schools.com/html/
- https://www.w3schools.com/css/
- https://www.w3schools.com/js/

- https://www.w3schools.com/bootstrap4/

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 21, 2022 Mar 21, 2022

no kidding,

 

you confuse, or push the bad faith, to qualify a template of broken under pretext that the site uses tables for its layout... lol


the template would be broken, in the case where the mechanism of generation of children page, or of its updates would not be functional. what was the case before the details of correction... but shouldn't be anymore...


it happens regularly to me to make sites and to drop this side... validator... uh... sorry... validator II the return... a website you will make, pleasure will win you... rigidity you will let go... try a blow it relieves

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 21, 2022 Mar 21, 2022

I understand one must break a FEW rules now & then.  But 100+ validation errors are nothing to sneeze at. 

 

Modern browsers don't like bad code. Dreamweaver doesn't like bad code.  Excessive errors in global templates adversely effects every page on the site leading to instability and other performance problems.  Rearranging deck chairs on the Titanic won't solve anything.

Titanic-sinking-animation.gif 

 

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 21, 2022 Mar 21, 2022

Starting over is not an option. I don't have the coding skills to recreate a new template. Dreamweaver only shows one error and that's on the very last line where I have /html. There's not a match of opening and closing codes, although when I search, there are an equal number of opening codes as closing codes, so I'm ignoring that error. Yes, the website was created 14 years ago, but I thought it conformed to HTML 5.0.

 

How do I match up the editable regions? I can find the regions in the HTML file that correspond with the editable regions in the template, but how do I tell Dreamweaver what goes with what? On the dialog that asks about "moving content to a new region," none of the options provided in the dropdown menu are the correct choices.

 

Can you help me add the code needed to tell the template and the document how to talk to each other and match up the correct editable regions? Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 21, 2022 Mar 21, 2022

As I already told you, yes we can help you, we just need to know what did you change to the DWT.

it's simple, just send us a copy of the DWT before change, (you send the one after)...

 

questions :

  • how many DWT do you have ?
  • how many child page do you have ?

 

solutions:

  • don't worry about the errors, for most of them they are minor errors, and can directly be correct in within the DWT and so will correct all the child pages
  • reassigning zone should'nt be complicated
  • a web site does not sink as fast as it was the case for some boats ... besides all the boats do not sink, even submerged
 

Birnou_1-1647925571182.png

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 21, 2022 Mar 21, 2022

I only have one DWT. I already sent the revised one. Now here's the previous one before any updates.

Original template 

There were a lot of changes, but they were mostly just appearance (background, color scheme, etc)

Number of child pages? Not sure of an exact number, but maybe 20-ish.

Appreciate your help SO MUCH!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 21, 2022 Mar 21, 2022

thanks for your fast reply... having both files, before and after, it's easy to see what changed, and so correct, if needed

 

I am in France, it is currently 7:23 AM, I do not know the time difference with you.


Is it possible to leave me some time to answer you, I am on two voluminous files that I have to treat in the morning, and this afternoon I go on a trip.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 22, 2022 Mar 22, 2022

I would welcome your assistance whenever you are able. Thank you.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 22, 2022 Mar 22, 2022
quote

Starting over is not an option. I don't have the coding skills to recreate a new template.

==========

Pay an experienced coder to help you.  Or switch to an online web service like Squarespace, Wix, Webflow or WordPress.

 

 

 

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 23, 2022 Mar 23, 2022

Sorry, Birnou is constantly on the move at the moment, he asked me if I could take a look at your DWT...

 

So in a first step,

 

taking into account the DWT file you'd like to use, we'll base it on GOOD-Basic-Template.dwt, I rename it to GOOD-Basic-Template-Revised.dwt

 

Apart from the fact that its construction is based on a TABLE layout, which should be rethought, here are some mistakes that should be quickly avoided (the order is purely arbitrary)

 

  • line 203: the image named old school clip art.jpeg must not use spaces in its filename, so physically rename it old_school_clip_art.jpeg, this is done on the code side.

 

  • your SCRIPT tags were using the ASYNC attribute, I removed this attribute and placed the SCRIPT tags at the bottom of your document.

 

  • as you use XHTML DOCTYPE, you must close your IMG tag, so that's done

 

  • your DOCTYPE was wrong (whitespace back in the middle), it has been corrected in the code

 

  • in your FOOTER you use a H3 inside a P... that is not allowed, so I removed the surrounding P tag

 

  • in this regard, you are using various H3 tags inappropriately... you should consider using CSS for this, and put some sense into the markup, preserve H3 for titles

 

  • I removed some empty tags, here and there...

 

  • the type of the SCRIPT tags was not defined, that's done

 

  • you use a TEXT-ALIGN attribute in one of the cells of your TABLE, TEXT-ALIGN doesn't exist, it's just ALIGN, but it would be better to use CSS for that purpose

 

  • I took the liberty to put the block comments,  back in the code and reformat the code (FOOTER, CONTAINER, BODY...)

 

So, you can copy / paste this code, or replace directly your DWT, as you like

 

in a second time,

 

you need to apply this template to one of your child pages

  • open the assets palette, (assets window)
  • in the series of icons on the left, choose template (the second last one from the bottom)
  • open a child page in creation mode (split view)
  • drag and drop the template from the assets palette onto the document rendering
  • save and place the document online

 

 

if you have a dialog box

head, should be replaced by head (not HEAD)

body... hmmm... I don't see...

 

anyway, screenshot and post it... if there is any doubt

otherwise publish the page online and see what happens.

 

in a third time,

 

if step 2 worked, you need to repeat it for each child page.

 

get the DWT here

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 23, 2022 Mar 23, 2022

I feel Lena should be paid for her time.

 

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 23, 2022 Mar 23, 2022
quote

I feel Lena should be paid for her time.

 


By @Nancy OShea

 

I second that!

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 23, 2022 Mar 23, 2022

I thought everyone on here volunteered their time. Those of us who rely on the expertise of others really appreciate the time they spend. Anyone on here can chose to volunteer their time to help others, or not.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 23, 2022 Mar 23, 2022

Slightly off-topic: May I suggest that you change your screen name? Spam bots will have a feast harvesting your email address for a more lurid purpose.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 23, 2022 Mar 23, 2022

@BenPleysier wrote:

Slightly off-topic: May I suggest that you change your screen name? Spam bots will have a feast harvesting your email address for a more lurid purpose.


 

Excellent idea. I'll do it now. Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines