Saving Framesets and Frames


Saving Framesets and Frames

As soon as you create a frameset it's selected in the document window. But if you've been working with frames and files, it can get tricky to know just what file you're working on. Sometimes the option to save that you want is grayed out. This could mean that the file was already saved. If you know it wasn't, then recheck all the visual clues to figure out what you have selected. Be sure you have the frame or frameset you intend to save selected.

To save a frameset:

1.
To select the frameset, click the outer border of the frameset in the Frames panel.

The thick border indicates the selected frameset, as in Figure 11.7.

2.
Choose File > Save Frameset.

If the frameset document has never been saved before, you'll be prompted to give the file a name . The frameset document is the file that is opened when a visitor first arrives at a URL, so frameset files are often saved as index.html .

or

Choose File > Save All.

This saves the frameset and all other open files at once. If this is the first time you are saving the files, Dreamweaver will prompt you to name each file prior to saving it.

or

Choose File > Save Frameset As.

This prompts you to save the frameset with a different name from the one you might already be using, and it is useful for making a backup or saving a copy.

Tip

  • Double-check the document window to verify that the frameset you want to save is what's selected. Dotted borders outline the selected frameset ( Figure 11.20 ). The tag selector at the bottom of the window displays <frameset> .

    Figure 11.20. Check for the dotted lines indicating a selection to be sure about what you are saving.


To save a frame:

1.
Click anywhere in an individual frame.

2.
Several File menu options related to frames are now available:

  • Choose File > Save Frame to save the currently selected frame.

  • Choose File > Save Frame As to save the current frame with a different name.

  • Choose File > Save Frame As Template. This will create a template you can use to create similar pages (see Chapter 13, "Make Life Easier: Using Templates, Libraries, and Snippets").

Tip

  • If you're working on an internal content page of your site while typing in a frame in the frameset document window, be careful when you save. You only want to save the file in the frame, not the entire frameset. If you inadvertently save the frameset, you'll be accidentally changing the Src file in the frameset document to that of the file you just savedprobably not what you wanted.


Page Title and Frame Title

Every document you create in Dreamweaver has a Title field in the toolbar at the top of the document window. The frameset page title may be the only title a user ever sees for your framed site, so make it count. However, it's a good idea to give each individual document in the site a title , too.

We need a little semantic clarification here, because there are title elements, and then there are title attributes. You first heard about title elements in Chapter 3, "Building Your First Page." There you learned how to create the document title in the Title field at the top of the window. This is the title that appears in the title bar of a Web browser when the page is loaded.

In this chapter, we talk a lot about title attributes for frames. Now, title attributes are very important, but they're not the same thing as the title elements that give a document a title.

Attributes describe elements. An element is made with an HTML tag. If you wrap some text with an HTML tag, you've got an element. HTML elements are things like paragraphs, lists, images, headings, and frames. All those elements have attributes like size , color , border , margin , and possibly title . A title attribute tells you some characteristic about its element. In this chapter, title attributes give information about the frame element.

If all this semantic talk is too much for you, remember this: if Dreamweaver gives you a chance to put a title anywhere, do it!





Macromedia Dreamweaver 8 for Windows & Macintosh Visual QuickStart Guide
Macromedia Dreamweaver 8 for Windows & Macintosh
ISBN: 0321350278
EAN: 2147483647
Year: 2005
Pages: 239

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net