13 Replies Latest reply: May 6, 2012 1:32 PM by mytaxsite.co.uk RSS

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

    cp94550 Community Member

      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.

        • 1. Re: Downloaded new site in to Dreamweaver - Where are the templates?
          garywpaul Community Member

          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.

          • 2. Re: Downloaded new site in to Dreamweaver - Where are the templates?
            cp94550 Community Member

            Thank you very much!  I hope I haven't already done too much damage - hahhaha.

            • 3. Re: Downloaded new site in to Dreamweaver - Where are the templates?
              Lon Winters Community Member

              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.

              • 4. Re: Downloaded new site in to Dreamweaver - Where are the templates?
                garywpaul Community Member

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

                 

                Gary

                • 5. Re: Downloaded new site in to Dreamweaver - Where are the templates?
                  cp94550 Community Member

                  I will have to ask him for the Template files then.  Just wondering - since I am able to "unattach" the template, is there a way that I can save the template from the downloaded files that I have?  I'm sure someone would have said if I could, but it's worth asking.

                  • 6. Re: Downloaded new site in to Dreamweaver - Where are the templates?
                    garywpaul Community Member

                    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)<

                    • 7. Re: Downloaded new site in to Dreamweaver - Where are the templates?
                      MurraySummers ACP/MVPs

                      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.

                      • 8. Re: Downloaded new site in to Dreamweaver - Where are the templates?
                        Lon Winters Community Member

                        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.

                        • 9. Re: Downloaded new site in to Dreamweaver - Where are the templates?
                          cp94550 Community Member

                          I think I know the exact filename and location. Not sure this is the best way to figure it out, but if I go to IE and go in to the menu > view coding then look through there I can find "../Templates/PWGSTemplate". I am not on a computer right now so I don't recall if that's the exact wording. If I were to save the file as template and put it in the templates directory/folder it should work?

                           

                          Sent from my iPhone

                          • 10. Re: Downloaded new site in to Dreamweaver - Where are the templates?
                            MurraySummers ACP/MVPs

                            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"'.

                            • 11. Re: Downloaded new site in to Dreamweaver - Where are the templates?
                              #30DSMR Community Member

                              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.

                              • 12. Re: Downloaded new site in to Dreamweaver - Where are the templates?
                                #30DSMR Community Member

                                 

                                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.

                                • 13. Re: Downloaded new site in to Dreamweaver - Where are the templates?
                                  mytaxsite.co.uk MVP

                                  @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.