Creating a Template-Based Page

Once you have a template, you can quickly create many new pages with the same design elements in the template. Simply base a new page on the template. To do so, follow these steps:

  1. Open the Assets window (click F11).

  2. Click the Templates button in the Assets category list on the left side of the Assets panel.

  3. Right-click the template (we named ours Base), and choose New From Template from the shortcut menu.

  4. To save the new page, choose File ® Save As to open the Save As dialog box, which is shown in Figure 23.27, and specify the appropriate web folder. Remember to specify the file type- we're working with an .asp file.

    click to expand
    Figure 23.7: Save the new page.

    Note 

    We saved our new page to Chapter23 in the MasteringDreamweaver folder and named our new page October to denote an issue.

  5. Click Save.

To customize the template-based page for the October issue, add text to the three editable regions, as defined in Table 23.1. Your template-based page should resemble the one shown in Figure 23.28.

Table 23.1: NEW CONTENT

Region

Text

Title

October's Hare-Raising Trouble

Byline

By Susan Sales Harkins

Article

yada, yada, yada

click to expand
Figure 23.28: Add content to the editable regions of the repeating table.

Now let's acknowledge a few contributors. To do so, follow these steps:

  1. Position the insertion point inside the EditableContributors editable region inside the Contributors repeating region.

  2. Enter Special thanks to:

  3. Click the repeating region's plus sign (+) to display a new editable region.

  4. Enter the name Alexis Stanley, as shown in Figure 23.29.

    click to expand
    Figure 23.29: Enter a contributor in the repeating region.

  5. Right now the repeating table displays just the Editor-in-Chief. Click the plus sign (+) twice, and Dreamweaver MX will duplicate the repeating row just below the first row. Edit the new lines, as shown in Figure 23.30.

    click to expand
    Figure 23.30: Add a second row to the repeating table.

  6. The final step is to determine whether you want the optional price region to show. In this case, let's disable it. To do so, choose Modify ® Template Properties to open the Template Properties dialog box, which is shown in Figure 23.31.

    click to expand
    Figure 23.31: eselecting the Show OptionalPrice option hides the optional region.

  7. Select OptionalPrice in the list, which will enable the Show OptionalPrice option. Deselect that option. Notice that Dreamweaver MX updates the OptionalPrice parameter's value to false.

  8. Click OK to close the Template Properties dialog box.

  9. Save the new page and close it.



Mastering Dreamweaver MX Databases
Mastering Dreamweaver MX Databases
ISBN: 078214148X
EAN: 2147483647
Year: 2002
Pages: 214

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