Importing pages into dreamweaver?

Discussion in 'HTML & Website Design' started by Cheyne, May 28, 2008.

  1. #1
    Hi,

    I need help importing files from outside of dreamweaver into to dreamweaver so that they are changed when I change their template files.

    Basically, I need thousans of pages created from a tamplate which I can do in a faster way than creating a few page, applying the template, saving the page as, etc.

    However I am not sure how to import them so that dreamweaver will know that they belong to my site.

    Any ideas?

    Thanks
     
    Cheyne, May 28, 2008 IP
  2. mahendras

    mahendras Peon

    Messages:
    597
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You need to first create a Site in dream weaver. When you open dream weaver then you see splash page.
    see the second column bottom section, there is section called Create Dream weaver sites.
    follow steps, they easy. then you should start creating template and attach template to files.
     
    mahendras, May 28, 2008 IP
  3. Cheyne

    Cheyne Peon

    Messages:
    351
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I have the site set up and templates created, I have used dreamweaver many times. What I mean is, rather than creating the new pages and applying the template to them from inside dreamweaver, I have a little application that does this for me much faster (better when working with lots of files). However dreamweaver doesn't know that they are associated with the template, because the pages weren't created in dreamweaver, so it doesn't know to change them when I modify the original template.

    Anyone know how to make dreamweaver recognize them?

    Thanks
     
    Cheyne, May 28, 2008 IP
  4. mspider

    mspider Guest

    Messages:
    231
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Anyway you must apply pages to tamplate so that DW recognise them.
    Go to: "Modify/Templates/Apply Template to Page".

    So that way you will get the template code to your pages like <!-- InstanceBegin template="/Templates/template.dwt" codeOutsideHTMLIsLocked="false" -->
     
    mspider, May 28, 2008 IP
  5. mahendras

    mahendras Peon

    Messages:
    597
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    If the file format is dwt, then dreamweaver must recognize it, if its not then it needed to be saved in dwt.
     
    mahendras, May 29, 2008 IP
  6. Cheyne

    Cheyne Peon

    Messages:
    351
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Basically this is what I am doing.

    I have a dwt file which I use for the template.

    I have thousands of pages which would take for forever to create and add the template to.

    I have an application which mass creates the pages using the dwt template and fills the template regions with content.

    Everything works perfectly.

    However. Dreamweaver has no idea that the pages are associated with the dwt file so when I change the dwt file, the pages that were auto created don't change as they should. I assume I need to 'tell dreamweaver that these pages exist' somehow and I am unable to find out how to do this.

    Does that make sense?

    Thanks
     
    Cheyne, May 29, 2008 IP
  7. mahendras

    mahendras Peon

    Messages:
    597
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Sounds unusually and when it happens It could be a spelling mistake, path error or something which is not easily seen by normal eyes.

    try this
    1. Check the header of any page which is using that template , is it looking 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"><!-- InstanceBegin template="/Templates/templates.dwt" codeOutsideHTMLIsLocked="false" -->

    See if the path you have referred is correct or not, its case sensitive.

    2. Open the page which is using template in dreamweaver, Go to Modify->template->Open Attached Template.
    If above step opens the template you are using, that means dream weaver has already recognized the template and if its not, the DWT file format is not compatible to dreamweaver.
     
    mahendras, May 30, 2008 IP