Skip navigation
cp94550
Currently Being Moderated

Downloaded new site in to Dreamweaver - Where are the templates?

Jun 18, 2011 10:18 AM

I PRE-APOLOGIZE FOR ALL INCORRECT TERMINOLOGY.  I have no clue what I'm doing!

 

I am completely new to Dreamweaver, web updating, all of it.  We have an existing website that is maintained by one of our employees, but he isn't always the fastest at getting the updates posted.  I downloaded Dreamweaver and imported the site, setup server, etc. and have been making some changes to the site.

 

I am noticing that some things were built through a template - The address/header across the top, the contact info/footer across the bottom - or at least that's what I'm guessing since the un-editable regions have a little yellow box that pops up when I hover over it that says "Template:PWGSTemplate" .  I wanted to update the header but I can't find that file in my Dreamweaver folder.  I am able to open other pages in the site, and they show the header, but it doesn't allow me to click on that area to edit it.  I Googled and someone said to go to Modify>Templates>Detach from Template.  By doing this I was able to make changes to that area of the site, but those changes are only on that particular page, not on the entire site. 

 

I have searched through all of the folders that downloaded when I imported the site in to Dreamweaver and I can't find any that are labeled Template.  I don't know if I need to contact the previous web guy and ask him if he has the Templates or if am just didn't download the correct information when I imported the website.

 

Again - apologies for incorrect terminology.

 

In case it makes a difference - I am using Dreamweaver CS5.5 on Mac.

 
Replies
  • Currently Being Moderated
    Jun 18, 2011 10:22 AM   in reply to cp94550

    It is not unusual for the template not to be loaded on the server, it is not required.

     

    Go to the employee and have him give the the .dwt file.

     

    Gary

     

    BTW It is a good idea to have your template loaded to the server, but only as a backup in case you lose a hard drive with the web files on it.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 18, 2011 10:43 AM   in reply to cp94550

    So if I understand, you don't have access to the original local files, only those on the web server? Then, I agree, go back to the guy and get the template files and if yo can, get all the files. Template files go in a folder called "templates" in the root folder, that's where Dreamweaver looks for them and wher it puts them . You can always reattach any pages to the template file. And, in the event you can't get the template files, you can always take one of your detached pages and save it as a template, just name it the same as the original. Just be careful, backup all your files first in case something goes wrong. Typically the homepage doesn't have a template, while the content pages may have one or more different templates driving them.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 18, 2011 4:28 PM   in reply to Lon Winters

    If you end up having to create the Templates folder, it needs to be name "Templates". with a capitol T.

     

    Gary

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2011 2:35 AM   in reply to cp94550

    Lon posted how to re-rcreate your template.  Simply make a copy of any child page, remove all the editable content, then save as a template. Rile | Save as Template.

     

    It is a good idead to put some text in the editable  regions just for ease of finding them, for example >Content for (name of editable region)<

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2011 5:39 AM   in reply to garywpaul

    There's a better way to do it than that.

     

    1.  Backup your site.

    2.  Close all open files.

    3.  Make a duplicate of any child page

    3.  Select this duplicate file in the file list

    4.  Do a find and replace in this CLOSED selected file for each of the

    following -

     

    Find -

    <!-- InstanceBegin template="/Templates/template.dwt"

    codeOutsideHTMLIsLocked="false" -->

    Replace -

    with nothing

    i.e., delete it.

     

    Find -

    <!-- InstanceEnd -->

    Replace -

    with nothing

    i.e., delete it

     

    Find -

    <!-- Instance

    Replace -

    <!-- Template

     

    You now have a template file.  Rename it to 'template.dwt' and move it to

    the Templates folder.

     

    Now you can open it and edit out the contents in the editable regions before

    saving it again.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2011 9:34 AM   in reply to MurraySummers

    Murray, good idea - but does that assume that the original template was named template.dwt? I got the impression from the original post it was named something else, and to recreate the template it would be better to keep the same file name as this is what all the child pages will be looking for.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2011 4:26 PM   in reply to cp94550

    Not without doing the procedure I described.  Save the file once you have finished my suggested steps in the Templates folder with the name "PWGSTemplate.dwt".  And yes, you would have to replace my use of '<!-- InstanceBegin template="/Templates/template.dwt' with your actual filename as in '<!-- InstanceBegin template="/Templates/PWGSTemplate.dwt"'.

     
    |
    Mark as:
  • Currently Being Moderated
    May 6, 2012 7:47 AM   in reply to MurraySummers

    Murray,

     

    My company upgraded from DW MX4 to DW8. After the update I discovered the site's default template (default.dwt) was missing from the Templates folder under the Assets section of the site. Have been able to update the child pages, however, changes need to be made to the default template page. Now I need to recreate and reattach the default.dwt page to the 150+child pages throughout the site. This site is for a public agency with high visibility and so I do not want to 'mess' it up as there is no agency tech support for DW apps. The site creator retired and showed me how to do a couple of things and because of that I assumed the website duties. Searched everywhere to find an answer and yours looks to be what I need to do. I have some questions though. What does it mean to back up the site?  Copy all the site files from both the local and remote servers to a CD? What does it mean to make a duplicate of the child page? Do you mean to do a 'save as' childpage1.asp or 'copychildpage.asp?' Why does the selected file need to be CLOSED? What does that mean? I understand the find and replace procedure. What about CSS coding? The default.dwt had CSS coding for color and font size which I assume is in the template coding of the childpage.asp. Once the childpage.asp is saved as the default.dwt does all the CSS coding reattach or reappear in the template?  Sorry for the questions....as I want to make sure I clearly understand your instructions. Thank you in advance for your time.

     
    |
    Mark as:
  • Currently Being Moderated
    May 6, 2012 8:32 AM   in reply to cp94550

     

    Murray,

     

    My company upgraded from DW MX4 to DW8. After the update I discovered the site's default template (default.dwt) was missing from the Templates folder under the Assets section of the site. Have been able to update the child pages, however, changes need to be made to the default template page. Now I need to recreate and reattach the default.dwt page to the 150+child pages throughout the site. This site is for a public agency with high visibility and so I do not want to 'mess' it up as there is no agency tech support for DW apps. The site creator retired and showed me how to do a couple of things and because of that I assumed the website duties. Searched everywhere to find an answer and yours looks to be what I need to do. I have some questions though. What does it mean to back up the site?  Copy all the site files from both the local and remote servers to a CD? What does it mean to make a duplicate of the child page? Do you mean to do a 'save as' childpage1.asp or 'copychildpage.asp?' Why does the selected file need to be CLOSED? What does that mean? I understand the find and replace procedure. What about CSS coding? The default.dwt had CSS coding for color and font size which I assume is in the template coding of the childpage.asp. Once the childpage.asp is saved as the default.dwt does all the CSS coding reattach or reappear in the template?  Sorry for the questions....as I want to make sure I clearly understand your instructions. Thank you in advance for your time.

     
    |
    Mark as:
  • Currently Being Moderated
    May 6, 2012 1:32 PM   in reply to #30DSMR

    @30DSMR,

     

    You need to start a new thread of your own.  You have hijacked somebody's thread and this is considered to be rude.  Also, the people who replied to the original post may not be around to answer you.  The original post is about one year old.

     

    Please repost in a new thread to get any meaningful replies.

     

    Good luck.

     
    |
    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