McMaster University

Faculty of Health Sciences
Web Design

Scope of Search

How to update library files in Dreamweaver

These instructions provide the best way to update a library file when using the McMaster Dreamweaver templates: 

  1. Start Dreamweaver and go to the your website.
  2. In the Library folder, check out (or get) a library file. For example, you may need to change the left_nav.lbi file.
  3. Make your changes to the library file.
  4. Save the library file and click Don’t Update when asked if you want to update all the files that contains the left_nav.lbi file.
  5. In the Templates folder, check out (or get) the mcmaster.dwt file.
  6. From the Dreamweaver menu, select Modify > Library > Update Current Page.  The mcmaster.dwt file will now be updated with the changes to the left_nav.lbi file.
  7. Save the mcmaster.dwt file and click Update when asked if you want to update all the files that use this template.  Select "Yes to All" if asked to check out all files.
  8. Test that your changes worked by viewing the website in a browser from your local copy of the website.
  9. Check in the left_nav.lbi file, all templates and all pages.

Your changes should now be live.

You may wonder why the instructions above tell you to click Don’t update in step 4.  The reason is that the left_nav.lbi file is contained in the mcmaster.dwt template and in all templates and pages.  So if you clicked Update in step 4, you create a process stream that updates those files.  The problem occurs when the mcmaster.dwt is updated.  All format*.dwt templates were created from the mcmaster.dwt template.  All pages were created from the fomat*.dwt templates. If you clicked Update in step 4, a second process stream would be created when the mcmaster.dwt template was updated with the change to the left_nav.lbi file in order to update all the file that use this template.  So then we have 2 process streams running at the same time.  Sometimes the two process streams try to update the same file at the same time and Dreamweaver may crash or the file will not be updated correctly.  Unfortunately Dreamweaver doesn’t handle this situation the way that it should, which would be to run one stream first and then run the second one. 

The instructions above are the way that I found is best to avoid this problem.  It works every time.