From the Asset Type drop-down list top right, select Placeholder Definition. Click the Create New Asset Type button and select New Placeholder Definition. Click OK. Click the Refresh button to refresh the list. This may take a few minures as the Right-cli

Building a Site Studio Web Site Tutorial 3-11

3. Expand Site Files then Templates.

4. Right-click region and select New.

5. In the New Gallery dialog, expand Web Tier and select JSP.

6. From the Items list, select JSP.

7. Click OK

8. In the Create JSP dialog: ■ For File Name, enter content.jspx. ■ Select the Create as XML Document option. ■ Select the Register Site File option. ■ Select Region Template from the Asset Type drop-down list. ■ For Site File ID, enter ssd-content-rt. ■ For Description, enter Content Region Template. ■ For Region Definition, click Browse. ■ Select the ssd-content-rd region definition and click OK. ■ Click OK again. 9. After the new region template opens in the editor, select the Source tab. 10. Add the following code: ?xml version=1.0 encoding=UTF-8? jsp:root xmlns:jsp=http:java.sun.comJSPPage version=2.1 xmlns:wcm=http:www.oracle.comjspwcm wcm:dataFile var=dataFile div id=content h1a href={dataFile.title}ah1 p{dataFile.content}p div jsp:root

11. From the main menu, select File and then Save All.

3.2.11 Creating a Placeholder Definition

Follow these steps to create a placeholder definition that uses the new region template and new region definition:

1. From the Asset Type drop-down list top right, select Placeholder Definition.

2. Click the Create New Asset Type button and select New Placeholder Definition.

3. For both Title and Content ID, enter ssd-content-phd.

4. Click OK.

5. Click the Refresh button to refresh the list. This may take a few minures as the

new asset must be indexed by the content server before displaying in the list.

6. Right-click ssd-content_phd and select Edit to open in the editor

7. Select all the Allowed Actions options.

8. For the Region Definition table, click Add.

9. Select ssd-content-rd and click OK.

3-12 Oracle Fusion Middleware Developers Guide for Site Studio for External Applications

10. For the Region Template table, click Add and enter ssd-content-rt.