• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 18. Automating Dreamweaver > Creating a Library Item

Creating a Library Item

You create a library item by copying a piece of existing HTML into the Library. You can select part of any existing page, or you can create a dummy page for the sole purpose of adding items from it to the Library.

To create a new library item:

1.
Open the page that contains the stuff you want to add to the Library.

If you are working with a new page, save the page in a folder on your local site.

2.
Select the desired objects (Figure 18.8). (You may want to use Code View or the tag selector to select all the tags you need.)

Figure 18.8. Select all the text, images, and other code you want to include in your library item. Here, I'm selecting the <center> tag in the tag selector, which includes all the tags and text I want to use.


3.
From the Document window menu bar, select Modify > Library> Add Object to Library. The Library will appear (Figure 18.9).

Figure 18.9. The Library, more wordily known as the Library category on the Assets panel. To just display the Library without adding a new item to it, select Window > Library from the Document window menu bar.


or

Drag the selection into the list box on the Library category of the Assets panel.

or

On the Library category of the Assets panel, click on the New button .

4.
Type a name for the library item in the text box, replacing the word Untitled.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint