Adobe dreamweaver cs5 classroom in a book(bbs)

Page 387

The small image of the sample product now appears on the screen. Now that you have one product displayed successfully, it’s a simple matter to show multiple products as you did with the Event and Class tables earlier.

Displaying multiple items To display more than one record, you need to add a repeat region as you did before. Although there’s no table row as in the previous example, you can assign the behavior to the element <div.productmaster> instead. 1 Switch back to Design view and select the <div.productmaster> tag selector. 2 Click the Server Behaviors tab to bring the panel to the front, or select Window > Server Behaviors. 3 In the Server Behaviors panel, click the plus (

) icon, and choose Repeat Region.

4 If necessary, choose rs_products from the Recordset menu. Select the radio button beside the Show field. In the Show field, enter 6. Click OK.

A gray tab displaying the word Repeat appears above <div.productmaster>. 5 Save all files. Preview the page in Live view. Click Yes to update the page on the testing server. Click Yes to upload dependent files.

ADOBE DREAMWEAVER CS5 CLASSROOM IN A BOOK

367


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.