Building the Site Using a Template
Lesson 5,
Developing a Page Template , and populate the content by importing prewritten content from several text files. To save typing time, we've included the text for the three pages in the text_files subfolder within the jade_valley site. It's accessible from within Dreamweaver.
The remaining pages for the site have been created for you. You will bring them into your Web folder later in this task.
1. | Open Dreamweaver and select File > New. In the New Document dialog, click the Templates tab. In the Templates for list, select the jade_valley site and then choose the jadevalley_template_main template from the list on the right. Click Create to create a new document based on the chosen template. |
The New Document dialog provides a convenient way to create a new page based on a template from any of your sites.
Take a few moments to examine the new document that's now available in the Document window. Try clicking the navigation bar, the logo, the yellow anchor link icon, the text-based navigation aid, and the footer. You'll notice that you can't select or modify them; these elements are in the template's locked region and can't be altered on any page. The only sections you can modify are the areas of the template you designated as editable regions: the two content columns on the page. Later in this lesson you'll learn how to change page elements that are in the locked regions.
[View full size image]

Note
Dreamweaver displays the template file in a box with a yellow border. A light-blue box with a blue label at the top-left corner surrounds the editable regions. You can customize these colors by choosing Edit > Preferences > Highlighting.
2. | In the Title box, delete Jade Valley Website Template and enter Jade Valley: About as the page title. |
Even though the title of the page doesn't appear anywhere in the document area, it's important. It gives the page an identity, and appears in the browser title bar, search engine listings, and on pages you print.
3. | In Dreamweaver's Files panel, open the text_files folder, and double-click to open about.txt. |
About.txt is a plain text file, without formatting applied, such as bold, italics, or special font colors. When you copy and paste the file into Dreamweaver, all the word processor formatting is lost anyway. The figure shows the text as it appears in Notepad, the minimalist word processor that ships with Windows.
[View full size image]

4. | Choose Edit > Select All, and then choose Edit > Copy. |
In this step, you're copying all the text to the Clipboard, making it available to paste into Dreamweaver.
5. | With the newly created page open in Dreamweaver, select the placeholder heading and subheading as well as all the Latin placeholder text. |
You're about to replace all the placeholder text with the text on the Clipboard.
6. | Choose Edit > Paste. |
The text appears in Dreamweaver. If you click inside each line and look in the Tag selector, you will see that each paragraph has been marked with the <p> tag.
[View full size image]

7. | Click anywhere in the page heading "About Jade Valley" and select Heading 1 from the Format drop-down menu in the Property inspector. |
Selecting Heading 1 from the Property inspector replaces the default <p> tag with an <h1> tag, which you can see if you look in the code. Changing the markup to <h1> makes the heading more prominent. Because the <h1> tag has been redefined in the cascading style sheet (CSS), it becomes large and red.
[View full size image]

8. | Choose File > Save and save the new document. In the Save As dialog, choose jade_valley as the designated site in the Save in drop-down menu. Enter about as the file name. Click Save to save the file. |
Note
By default, Dreamweaver may try to append l rather than . The navigation bar you created in Fireworks used , rather than l, so make sure you stick with .
The new about page now appears in the Files panel.

You now have three new pages for the Jade Valley Web site. The site actually has seven pages, including the home page. In the next step, you'll copy the other three premade pages from the Start folder to your folder.
Tip
In addition to using the New Document dialog to create a new document based on a template, you can also use the Assets panel. In the Assets panel (Window > Assets), click the Templates icon on the left to view the list of templates in your site. Right-click (Windows) or Control-click (Macintosh) the template you want to use as the source for the new document, and from the context menu, choose New from Template.
10. | In Windows Explorer or Macintosh Finder, browse to the Lesson06/Start/jade_valley folder on the CD. Press Ctrl (Windows) or Command (Macintosh) and click to select nutrition, organic, and events. Choose Edit > Copy. Paste the three documents into the jade_valley folder on your hard drive. |
You now have all six pages needed for the Jade Valley Web site. Click the Refresh button in the Site folder if necessary to see the files.

These three predeveloped pages contain all the necessary images and content for a particular section of the Web site. Take a few minutes to explore these new additions and learn more about the site you're developing.
[View full size image]

11. | Save and close all files, including, if necessary, jade_valley.css. |
When you work on a CSS file using the CSS Styles panel, Dreamweaver opens it in the background, providing you direct access to its code. You didn't work on its code directly; you modified it through Dreamweaver's interface.