Editing a library item

Editing a library item

When you edit a library item, you can update all documents that use that item. If you choose not to update, the documents remain associated with the library item; you can update them later.

Other kinds of changes to library items include renaming items to break their connection with documents or templates, deleting items from the site’s library, and recreating a missing library item.

To edit a library item:

  1. In the Assets panel (Window > Assets), select the Library category on the left side of the panel.This is a picture of the feature being described.
  2. Select a library item.

    A preview of the library item appears at the top of the Assets panel. (You can’t edit anything in the preview.)

  3. Do one of the following:
    • Click the Edit button at the bottom of the panel.This is a picture of the feature being described.
    • Double-click the library item.

    Dreamweaver opens a new window for editing the library item. This window is much like a Document window, but its Design view has a gray background to indicate that you’re editing a library item instead of a document.

  4. Edit the library item, then save your changes.
  5. In the dialog box that appears, select whether to update the documents on the local site that uses the edited library item:
    • Select Update to update all documents in the local site with the edited library item.
    • Select Don’t Update to avoid changing any documents until you use Modify > Library > Update Current Page or Update Pages.

To update the current document to use the current version of all library items:

  • Select Modify > Library > Update Current Page.

To update the entire site or all documents that use a particular library item:

  1. Select Modify > Library > Update Pages.

    The Update Pages dialog box appears.

  2. In the Look In pop-up menu, do one of the following:
    • Select Entire Site, then select the site name from the adjacent pop-up menu.

      This updates all pages in the selected site to use the current version of all library items.

    • Select Files That Use, then select a library item name from the adjacent pop-up menu.

      This updates all pages in the current site that use the selected library item.

  3. Make sure Library Items is selected in the Update option.
  4. Click Start.

    Dreamweaver updates the files as indicated. If you selected the Show Log option, Dreamweaver provides information about the files it attempts to update, including information on whether they were updated successfully.

To rename a library item:

  1. In the Assets panel (Window > Assets), select the Library category on the left side of the panel.
  2. Select the library item you want to rename, pause, then click again.
  3. When the name becomes editable, enter a new name.
  4. Click elsewhere, or press Enter (Windows) or Return (Macintosh).
  5. Dreamweaver asks if you want to update documents that use the item:
    • To update all documents in the site that use the item, click Update.
    • To refrain from updating any documents that use the item, click Don’t Update.

To delete a library item from a library:

  1. In the Assets panel (Window > Assets), select the Library category on the left side of the panel.
  2. Select the library item you want to delete.
  3. Do one of the following:
    • Click the Delete button at the bottom of the panel, then confirm that you want to delete the item.
    • Press the Delete key, then confirm that you want to delete the item.

    Dreamweaver removes the library item from the library, but doesn’t change the contents of any documents that use the item.

To recreate a missing or deleted library item:

  1. Select an instance of the item in one of your documents.
  2. Click the Recreate button in the Property inspector (Window > Properties).

Related topics

  • Creating a library item
  • Making library items editable in a document
  • Editing a behavior in a library item


Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Managing Your Files
Laying Out Pages
Adding Content to Pages
Working with Page Code
Preparing to Build Dynamic Sites
Making Pages Dynamic
Developing Applications Rapidly