Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Vista

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

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
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
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server