Logo
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
EPL Standings
 
 
Windows Vista

Adobe Dreamweaver CS5 : Using Library Items and Server-side Includes (part 5) - Updating Your Web Sites with Libraries

11/29/2013 1:53:55 AM

4. Updating Your Web Sites with Libraries

The effectiveness of the Dreamweaver Library feature becomes more significant when it comes time to update an entire multipage site. Dreamweaver offers two opportunities for you to update your site:

  • Immediately after modifying a Library item, as explained in the preceding steps for editing a Library item

  • At a time of your choosing, through the Modify => Library command

You can immediately update every page on your site when you edit a Library item. After you save the alterations, Dreamweaver asks if you'd like to apply the update to Web pages in your site. If you click Yes, Dreamweaver not only applies the current modification to all pages in the site, but it also applies any other alterations that you have made previously in this Library.

The second way to modify a Library item is by using the Modify => Library command; when you use this method, you can choose to update the current page or the entire site.

To update just the current page, choose Modify => Library => Update Current Page. Dreamweaver quickly checks to see what Library items you are managing on the current page and then compares them to the site's Library items. If any differences exist, Dreamweaver modifies the page accordingly.

To update an entire Web site, follow these steps:

  1. Choose Modify => Library => Update Pages. The Update Pages dialog box opens (see Figure 5).

  2. If you want Dreamweaver to update all the Library items in all the Web pages in your site, select Entire Site from the Look In drop-down list and choose the name of your site in the drop-down list on the right. You can also have Dreamweaver update only the pages in your site that contain a specific Library item. Select the Files That Use option from the Look In drop-down list and then select the Library item that you would like to have updated across your site from the drop-down list on the right.

    Figure 5. The Update Pages dialog box enables you to apply any changes to your Library items across an entire site and informs you of the progress.
  3. If you want to see the results from the update process, leave the Show Log checkbox selected. (Turning off the Show Log option reduces the size of the Site Update dialog box.)

  4. Click the Start button. Dreamweaver processes the entire site for Library updates. Any Library items contained are modified to reflect the changes.

NOTE

Although Dreamweaver does modify Library items on currently open pages during an Update Site operation, you have to save the pages to accept the changes.

The Update Pages log displays any errors encountered in the update operation. The following log notation indicates that one Web page contains a reference to a Library item that has been removed:

item Library\Untitled2.lbi - not updated, library item not found

Although this is not a critical error, you might want to use Dreamweaver's Find and Replace feature to search your Web site for the code and remove it.

NOTE

When updating Library items, every page is physically changed with the necessary Library item code. This means that every file containing a Library item must be uploaded to the server.

Applying and Modifying Library Items

In this Technique, you see how easy it is to add Library items to the page and update them as necessary.

  1. From the Techniques site, open the library_items_start2.htm file from the 29_Library_Items folder.

  2. Place your cursor at the bottom of the page in the #footer div.

  3. Select the placeholder <p> tag there and remove it by pressing Delete.

  4. From the Assets panel, select the Library category if necessary.

  5. Choose the textNavigation entry.

  6. Click Insert at the bottom of the Assets panel.

    You can also drag Library items onto the page.

  7. Save your page.

  8. Now that you have the same Library item in a couple of locations, alter it. Double-click the textNavigation Library item.

    Dreamweaver opens the Library item file in its own window.

  9. Place your cursor after the About Us link and enter the following: - Guides.

  10. Select the word Guides and, from the Properties panel's Link field, drag the Point to File icon to the file guides.htm in the 29_Library_Items folder.

    It's always best to let Dreamweaver create the links for templates and Library items.

  11. Choose File Save.

  12. Dreamweaver displays the Update Library Items dialog box with the pages containing the current Library item. Click Update.

  13. While Dreamweaver processes the modifications, the Update Pages dialog box is displayed; click Close when it's finished.



  14. Close the textNavigation.lbi file.

    Notice that the library_items_start2.htm file has been modified and the new item is now available from the text navigation.

  15. Choose File Save to store the library_items_start2.htm file.

If you like, you can open the original file, library_items_start1.htm, to verify that it, too, has been updated.

Other -----------------
- Configuring Startup and Troubleshooting Startup Issues : How to Configure Startup Settings (part 2) - How to Use BCDEdit
- Configuring Startup and Troubleshooting Startup Issues : How to Configure Startup Settings (part 1)
- Configuring Startup and Troubleshooting Startup Issues : Important Startup Files
- Accessing and Using Your Network : Collaborating with Windows Meeting Space (part 2)
- Accessing and Using Your Network : Collaborating with Windows Meeting Space (part 1)
- Accessing and Using Your Network : Working with Offline Files and the Sync Center (part 2) - Synchronizing Offline Files, Handling Synchronization Conflicts
- Accessing and Using Your Network : Working with Offline Files and the Sync Center (part 1) - Working with Network Files Offline
- Accessing and Using Your Network : Sharing Resources with the Network (part 3) - Hiding Shared Resources
- Accessing and Using Your Network : Sharing Resources with the Network (part 2) - Sharing a Resource
- Accessing and Using Your Network : Sharing Resources with the Network (part 1) - Setting Up File and Printer Sharing, Deactivating the Sharing Wizard
- Accessing and Using Your Network : Accessing Network Resources
- Accessing and Using Your Network : Learning Some Common Network Tasks
- Collecting Vista Events
- Automating Vista Events
- Exploring the Vista Task Scheduler
- Tracking Change in Vista : Turning on the audit policy, Exploring the Vista Event Log
- Managing Change through Group Policy (part 4) - Assigning PC-Related GPOs, Troubleshooting and monitoring Group Policy
- Managing Change through Group Policy (part 3) - Working with GPO tools
- Managing Change through Group Policy (part 2) - Working with central policies
- Managing Change through Group Policy (part 1) - Working with Local Policies
 
 
Most view of day
- Microsoft Exchange Server 2007 : Single Copy Clusters (part 2) - Installing Exchange Server 2007 on the Active Node
- Designing and Configuring Unified Messaging in Exchange Server 2007 : Unified Messaging Shell Commands
- BizTalk Server 2009 Operations : Disaster Recovery (part 1) - Configuring the Destination System for Log Shipping
- Microsoft Exchange Server 2007 : Understanding the Client Access Server (part 3) - ActiveSync Remote Wipe, Outlook Anywhere
- Microsoft Project 2010 : Setting Up a Project Budget - Reducing Project Costs
- Securing Your SharePoint and Windows Azure Solutions : Configuring Shared Access Permissions for BLOB Storage - Using Claims-Based Authentication
- Advanced Windows 7 Programming : Working in the Background - DEVELOPING TRIGGER-START SERVICES (part 1)
- Managing Digital Movies (part 2) - Watching and Managing Movies with Windows Live Photo Gallery
- Maintaining Desktop Health : Using Task Scheduler (part 5) - Scheduled Tasks Events, Troubleshooting Task Scheduler
- Microsoft OneNote 2010 : Doing Research with Side Notes (part 2) - Reviewing Side Notes
Top 10
- Windows Server 2012 : DHCP,IPv6 and IPAM - Exploring DHCP (part 3) - Creating IPv4 DHCP Scopes
- Windows Server 2012 : DHCP,IPv6 and IPAM - Exploring DHCP (part 2) - Installing DHCP Server and Server Tools
- Windows Server 2012 : DHCP,IPv6 and IPAM - Exploring DHCP (part 1)
- Windows Server 2012 : DHCP,IPv6 and IPAM - Understanding the Components of an Enterprise Network
- Microsoft OneNote 2010 : Using the Research and Translate Tools (part 3) - Translating Text with the Mini Translator
- Microsoft OneNote 2010 : Using the Research and Translate Tools (part 2) - Translating a Word or Phrase with the Research Pane
- Microsoft OneNote 2010 : Using the Research and Translate Tools (part 1) - Setting Options for the Research Task Pane, Searching with the Research Task Pane
- Microsoft OneNote 2010 : Doing Research with Linked Notes (part 2) - Ending a Linked Notes Session, Viewing Linked Notes
- Microsoft OneNote 2010 : Doing Research with Linked Notes (part 1) - Beginning a Linked Notes Session
- Microsoft OneNote 2010 : Doing Research with Side Notes (part 3) - Moving Side Notes to Your Existing Notes
 
 
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
2015 Camaro