4 Replies Latest reply on Jun 13, 2008 5:03 PM by bitla50

    Template issues

    jcdc_
      I have created a template in ASP like this template.dwt.asp; however, anytime that I try Apply template to Page I got this error
      "The template that you're trying to apply does not allow changes outside the <html>tag. this document contains code outside the <html> tag, which will be lost by applying the template. Proceed ? "

      Can somebody help me out !!! please it's making me crazy!!1

      thank
        • 1. Re: Template issues
          Level 7
          YOu have added a line to the template that causes DW to treat the regions
          above <html> and below </html> as if they were NON-EDITABLE. Remove that
          line from the template and this alert will disappear.

          <!-- TemplateInfo codeOutsideHTMLIsLocked="true" -->

          Why did you add that?

          By the way, applying a template to a page that has existing content is the
          worst way to do things. You would be much better off by spawning a new page
          from the template, and copying and pasting from the existing page into the
          new one. That way you can place things exactly where you want.

          --
          Murray --- ICQ 71997575
          Adobe Community Expert
          (If you *MUST* email me, don't LAUGH when you do so!)
          ==================
          http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
          http://www.dwfaq.com - DW FAQs, Tutorials & Resources
          ==================


          "jcdc_" <webforumsuser@macromedia.com> wrote in message
          news:g2skif$n3e$1@forums.macromedia.com...
          >I have created a template in ASP like this template.dwt.asp; however,
          >anytime
          > that I try Apply template to Page I got this error
          > "The template that you're trying to apply does not allow changes outside
          > the
          > <html>tag. this document contains code outside the <html> tag, which will
          > be
          > lost by applying the template. Proceed ? "
          >
          > Can somebody help me out !!! please it's making me crazy!!1
          >
          > thank
          >
          >

          • 2. Re: Template issues
            bitla50
            Newsgroup user, now that you are at it: where do I find templates? My folder is empty. I thought DW came with templates, but apparently not? Thank you for an answer that is as useful as the one above :-)
            • 3. Re: Template issues
              Level 7
              DW comes with sample page layout templates, not with full site templates.

              --
              Murray --- ICQ 71997575
              Adobe Community Expert
              (If you *MUST* email me, don't LAUGH when you do so!)
              ==================
              http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
              http://www.dwfaq.com - DW FAQs, Tutorials & Resources
              ==================


              "bitla50" <webforumsuser@macromedia.com> wrote in message
              news:g2ud9f$ngd$1@forums.macromedia.com...
              > Newsgroup user, now that you are at it: where do I find templates? My
              > folder is
              > empty. I thought DW came with templates, but apparently not? Thank you for
              > an
              > answer that is as useful as the one above :-)
              >

              • 4. Re: Template issues
                bitla50 Level 1
                OK, Thanks, those I have.