Skip navigation
Currently Being Moderated

Dreamweaver CS5.5 Always saves as a template?

Jun 5, 2011 10:14 AM

I opened a .html document with dreamweaver, using CSS and every time I try to save it automatically tries to save as a .dwt ... The only wierd thing is that I made this .html with Notepad++ so I can't see how it would include any template stuff???

 

Thanks in advance

 
Replies
  • Currently Being Moderated
    Jun 5, 2011 10:21 AM   in reply to alfo77777

    When you save a document with DW, there are two choices at the bottom. Name and file type. You can save it as anything you want (even .jpg if you feel like it. It won't work as a picture, but you can save it that way)

     

    Unless you choose a template when you open a new html file, it shouldn't be trying to save the edited copy as one.

     

    I'm constantly creating CSS, HTML, and JS files and it always asks to save as what I opened when I pressed CTRL+N and chose a doc type.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 7, 2011 9:01 AM   in reply to alfo77777

    I'm having the same problem in CS5 -- this is when I try to save an exististing file. Clicking on the Save button or File|Save brings up the Save as Template dialogue box, with no other save option presented. I need to close the file being edited; DW then prompts me to save it (normally).

     

    I haven't found any program options to control this; I've also tried deleting theDW cache file with no luck.

     

    Mike

     

    ETA: I can perform a File|Save As, and the open file name defaults to the Save file name. I am asked if I want to overwrite the existing file.

     

    IKNAA -- this occurs when editing an existing file -- not a new one. . .

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 7, 2011 9:37 AM   in reply to mjperry1951

    What is the file extension of the existing file. .html or .dwt?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 7, 2011 9:57 AM   in reply to 370H55V

    Doesn't matter -- it happens for .html or .php. . . .

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 7, 2011 11:43 AM   in reply to mjperry1951

    In DW Preferences under New Document, does it show .html or .dwt as the default extension?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 7, 2011 12:02 PM   in reply to 370H55V

    New Document is set to .html. But this occurs when editing an existing document.

     

    I open index.php (existing) and begin editing. If I click the Save button, or use File|Save from the menu I get the Save as Template Dialogue, not the standard Save dialogue. I shouldn't get ANY dialogue box -- it should just save it. . .

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 7, 2011 12:37 PM   in reply to mjperry1951

    I've never seen this happen before in seven years. Have you tried resetting your workspace?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 7, 2011 1:02 PM   in reply to 370H55V

    Just did -- no change. .  .

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 7, 2011 1:13 PM   in reply to 370H55V

    Found it --

     

    I am using WebAssist's Site Sculptor. It creates the index page for a site with template code in it. DW sees the template code and assumes a template is being edited. . .

     

    Remove the references to <Editable Section>s and the issue disappears. . .

     

    Thanks for making me look for it!!

     

    Mike

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 26, 2011 4:12 PM   in reply to alfo77777

    Remove all the

    <!-- TemplateBeginEditable name="doctitle" -->

    ...some template meta code...

     

    from the code view. that should work. Have you made a new document from dw's ready templates?

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 27, 2011 4:17 AM   in reply to tommiK

    The page with the template code in should be saved in the site's Templates folder as a DW template (i.e., with a *.dwt extension) and used to spawn legitimate child pages.  Don't hack into the code as you suggest.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points