Forum Moderators: open

Message Too Old, No Replies

problem saving as Dreamweaver template

         

southernmost

6:30 pm on Sep 3, 2004 (gmt 0)

10+ Year Member



When I try to save a page as a template in Dreamweaver MX I get an error message that line 11 has nested editable regions. Here is the code. I'd appreciate any help.

[edited by: pageoneresults at 8:31 pm (utc) on Sep. 3, 2004]
[edit reason] Removed Code Dump - Please Refer to TOS [/edit]

bunltd

6:46 pm on Sep 3, 2004 (gmt 0)

10+ Year Member



Hi southernmost, welcome to WebmasterWorld.

You might want to edit your post to remove the specifics. See the TOS [webmasterworld.com] #13.

Your code doesn't look like it has any of the DW template markup in it - if a page has a template applied to it, you should see something that looks like this at the top of the page after the <html> tag :

<!-- InstanceBegin template="/Templates/foo.dwt" codeOutsideHTMLIsLocked="false" -->

Is this code from the template itself or from a page you tried to apply the template to?

LisaB

southernmost

6:56 pm on Sep 3, 2004 (gmt 0)

10+ Year Member



Sorry about posting incorrectly.
Here is what I did. I'm pretty much a newbie (read clueless) and have been struggling to redesign my site. I finally decided to search the web and find a site whose layout I liked, imported it into Dreamweaver, and then modified it with my own content. Finally, I tried to save it as a template (that I could then begin filling in for the individual pages). But the error message appears, and then lets me save it. But when I go to use the template, dreamweaver tells me I have an error (nested editable regions) and won't create a new page from the template.
I really don't know how to lock-out the parts of the template that I don't want to change page per page.

bunltd

8:41 pm on Sep 3, 2004 (gmt 0)

10+ Year Member



If the page you're working with was created by a DW template, you'll get the error about nested regions when you try to save that page as a template. what a mouthful

At the top of the original file do you see anything like this:

<!-- InstanceBegin template="/Templates/main.dwt" codeOutsideHTMLIsLocked="false" -->

The easiest way to keep the editable regions would be to strip that line from the top of the file, and remove the

<!-- InstanceEnd -->

from the bottom of the page. Then you should be able to save it as a template. (If you Detach from Template (on the modify > templates menu), it strips out all the template code) Hope this helps.

LisaB