10 Replies Latest reply: Aug 18, 2012 4:35 AM by MurraySummers RSS

    Template Warning - Not Editable?

    Lynda Spangler Community Member

      I keep seeing an error telling me I have made changes to an area that is not editable. I can click Yes or No to keep changes but it doesn't matter if I click yes or no as it has no effect on the page. Screenshot of Error: http://screencast.com/t/oQdAUG4x

       

      I am using a DW Template and the template looks like this:

       

       

      <!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" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">

      <!-- InstanceBegin template="my-template.dwt" codeOutsideHTMLIsLocked="false" -->

      <head>

      <!-- InstanceBeginEditable name="doctitle" --><title></title><!-- InstanceEndEditable -->

       

      <!-- InstanceBeginEditable name="head" -->

       

      </head>

      <body>

       

      <!-- InstanceEndEditable -->

       

      <!-- InstanceBeginEditable name="ContentArea" -->{tag_pagecontent}<!-- InstanceEndEditable -->

      </body>

      <!-- InstanceEnd --></html>

       

      When working with a page I edit the content only within the <!-- InstanceBeginEditable -->  <!-- InstanceEndEditable --> areas.

       

      What happens with this error is I am working on a page if I click anywhere outside of the page including another program I see this message. It has become a real pain as I must always deal with this error even when switching between programs and coming back to DW. Are others seeing this error and how do I stop it?

       

      I am running DW CS6 on Windows 7 (64bit). I do use Business Catalyst and the template is set so it works with their servers.

        • 1. Re: Template Warning - Not Editable?
          Ken Binney CommunityMVP

          Did you "define" this site in DW before setting up the template?

          • 2. Re: Template Warning - Not Editable?
            MurraySummers CommunityMVP

            The error you are describing usually has nothing to do with editable regions, except that it only gets displayed when you are working with template child pages.  It generally means "Oops I have found an error".  This error could be in your HTML or in your CSS. In your case, I see the likely cause (or is it just a typo?).  You have this -

             

            <!-- InstanceBeginEditable name="head" -->

             

            </head>

            <body>

            <!-- InstanceEndEditable -->

            and it must be this -

             

            <!-- InstanceBeginEditable name="head" -->

            <!-- InstanceEndEditable -->

            </head>

            <body>

             

            You CANNOT put the body tag into an editable region like that.

            • 3. Re: Template Warning - Not Editable?
              Lynda Spangler Community Member

              Thanks for the information. Is there a way to turn this off as it is very annoying? I also do not understand what errors it is seeing? The page doesn't validate for a couple reasons but would that throw an error?

               

              And yes that was a typo on my part and is actually this:

               

               

              <!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" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">

              <!-- InstanceBegin template="my-template.dwt" codeOutsideHTMLIsLocked="false" -->

              <head>

              <!-- InstanceBeginEditable name="doctitle" --><title></title><!-- InstanceEndEditable -->

              <!-- InstanceBeginEditable name="head" -->

               

              <!-- InstanceEndEditable -->

              </head>

              <body>

               

              <!-- InstanceBeginEditable name="ContentArea" -->{tag_pagecontent}<!-- InstanceEndEditable -->

               

              </body>

              <!-- InstanceEnd --></html>

              • 4. Re: Template Warning - Not Editable?
                MurraySummers CommunityMVP

                This code validates, and should not throw that warning. Does it?

                • 5. Re: Template Warning - Not Editable?
                  Lynda Spangler Community Member

                  That page does not specifically but when I am using and editing the page with content then it throws errors. What I meant by validate is for example I have this code on my site:

                   

                   

                  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">

                  and

                  <link rel="apple-touch-icon-precomposed" sizes="114x114" href="http://mysite.com/images/skin/favicon-apple.png" />

                   

                  But when I run it through the W3C Validator it gives me an error:

                   

                  1. Error Line 9, Column 63: end tag for "meta" omitted, but OMITTAG NO was specified <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">

                       

                    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

                  2. Info  Line 9, Column 1: start tag was here <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">

                   

                  or

                   

                  Error Line 13, Column 48: there is no attribute "sizes"

                  …="apple-touch-icon-precomposed" sizes="114x114" href="http://mysite.com/images/skin/favicon-apple.png"

                   

                  You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

                  This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

                  How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

                   

                  But regardless of the supposed errors DW should not show me that message in my opinion or at least allow me to turn it off. Is it because of this lack of valid code that that error shows or is it yet something else?

                   

                  Thanks for the help.

                  • 6. Re: Template Warning - Not Editable?
                    MurraySummers CommunityMVP

                    Show us a page that is giving you this error, please.  A link would be best.

                    • 7. Re: Template Warning - Not Editable?
                      Lynda Spangler Community Member

                      Here is a page that in DW generates that error: http://tinyurl.com/8du6uvj

                      • 8. Re: Template Warning - Not Editable?
                        MurraySummers CommunityMVP

                        That is a bit of a puzzle - there's nothing that jumps off the page for me.  Let's take care of the little things, though -

                         

                        963<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">end tag for "meta" omitted, but OMITTAG NO was specified

                        This refers to the fact that you are using an XHTML doctype, but don't have the proper closing syntax for that meta tag.  It should end with a self-closing slash, e.g., '/>'.

                         

                        1601643…gGAAAMAHTRKzfpKGSsAAAAASUVORK5CYII=" /><span class="info-icon"></span>Photo In…required attribute "alt" not specified

                        So add the alt attribute already - even an empty one, e.g., alt=""!

                         

                        Also I notice in several places that you have links looking like this -

                         

                        <script type="text/javascript" src="//use.typekit.net/kzf4prm.js"></script>

                         

                        or this -

                         

                        <script type="text/javascript" src="//s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4dfb00d56c76d2a5"></script>

                         

                        Try changing those to include the protocol explicitly, e.g.,

                         

                        <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4dfb00d56c76d2a5"></script>

                         

                        Finally, if none of those work then try commenting out the CSS links and see if the page still throws the warning.  Let us know what the results are, please!

                        • 9. Re: Template Warning - Not Editable?
                          Lynda Spangler Community Member

                          I seem to have found the culprit of the error. Within BC you have content holders, they are rendered like so: {module_contentholder,61248}

                           

                          But if I have any of those in my template (I have 3) the error will happen. If I remove them the error does not happen. Also this error will happen regardless of a page validating or not if those content holders are in place.

                           

                          I have attempted to turn off any validation alerts (Screenshot) but that does not work.

                           

                          To me this would seem an error in DW. I will mention this over on the BC forums to see if others are seeing this behavior. Should I file a bug report with the DW Team?

                           

                          Note: From the front-end view you will not see the content holders since BC is rendering the content holders.

                           

                          Thanks for the help!

                          • 10. Re: Template Warning - Not Editable?
                            MurraySummers CommunityMVP

                            I seem to have found the culprit of the error. Within BC you have content holders, they are rendered like so: {module_contentholder,61248}

                             

                            Nice work.

                             

                            Should I file a bug report with the DW Team?

                             

                            Yes, definitely.