Dreamweaver CS4 Resources
|
Edit library items and update documents
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.
You can rename items to break their connection
with documents or templates, delete items from the site’s library,
and recreate a missing library item.
Note: The CSS Styles panel
is unavailable as you edit a library item, because library items
can contain only body elements and Cascading Style
Sheets (CSS) code is inserted in the head section
of a document. The Page Properties dialog box is also unavailable,
because a library item can’t include a body tag
or its attributes.
Edit a library item- In the Assets panel, select the Library
category
.
- Select a library item.
- Either Click the Edit button
or
double-click the library item. Dreamweaver opens a new window,
similar to the Document window, for editing the library item. The
gray background indicates that you’re editing a library item instead
of a document.
- Make and then save your changes.
- Specify whether to update the documents on the local
site that use the library item. Select Update to update immediately.
If you select Don’t Update, documents won’t be updated until you
choose Modify > Library > Update Current
Page or Update Pages.
Update the current document to use the current version of all library items Select Modify > Library >
Update Current Page.
Update the entire site or all documents that use a particular library item- Select Modify > Library >
Update Pages.
- In the Look In pop‑up menu, specify what to update:
To update all pages in the selected site
to use the current version of all library items, select Entire Site,
then select the site name from the adjacent pop‑up menu.
To update all pages in the current site that use
the library item, select Files That Use, then select a library item
name from the adjacent pop‑up menu.
- Make sure that Library Items is selected in the Update
option.
 To update templates at the same time, select
Templates as well.
- Click Start.
Dreamweaver updates the files as
indicated. If you selected the Show Log option, Dreamweaver generates a report showing whether
files were updated successfully, along with other information.
Rename a library item- In the Assets panel, select the Library
category
.
- Select the library item, pause, and then click again.
(Do not double-click; double-clicking opens the item for editing.)
- Enter a new name.
- Click elsewhere, or press Enter (Windows) or Return (Macintosh).
- Specify whether to update documents that use the item
by choosing either Update or Don’t Update.
Delete a library item from a libraryWhen you delete a library item, Dreamweaver removes it from the library but doesn’t
change the contents of any documents that use the item.
- In the Assets panel, select the Library
category
.
- Select the library item.
- Either click the Delete button or press the Delete key,
then confirm that you want to delete the item.
Important: If you delete a library item, you
can’t use Undo to retrieve it. You may be able to recreate it, however.
Recreate a missing or deleted library item- Select
an instance of the item in one of your documents.
- Click the Recreate button in the Property inspector (Window >
Properties).
|