Building a Site Studio Web Site Tutorial 3-3
3.2 Creating a Sample Web Site
These are the steps for creating a sample web site:
■
Step 1: Creating a New Web Site in the Content Server
■
Step 2: Specifying User Credentials for Contribution Mode
■
Step 3: Editing the Web Application Deployment Descriptor
■
Step 4: Creating the Home Page
■
Step 5: Associating the Page Template with the Site
■
Step 6: Running the Site and Viewing the Home Page
■
Step 7: Creating Site Fragments
■
Step 8: Creating the Element Definitions
■
Step 9: Creating a Region Definition
■
Step 10: Creating a Region Template
■
Step 11: Creating a Placeholder Definition
■
Step 12: Adding a Placeholder to the Home Page
■
Step 13: Assigning Content to the Placeholder
3.2.1 Creating a New Web Site in the Content Server
Follow these steps to create a new web site in the content server.
1. In the Application Navigator, select the Projects panel.
2.
Expand your Site Studio project SiteStudioDemo.
3. Expand Web Content, and then expand WEB-INF.
4. Right-click wcm-config.xml and select Open.
5. Select the Server tab, and then expand Sites.
6. Click the Create button.
7.
In the Create New Site dialog, enter SiteStudioDemo for both Name and ID fields.
8. Click OK.
9. From the main menu, select File and then Save All.
3.2.2 Specifying User Credentials for Contribution Mode
Follow these steps to specify user credentials for contribution mode:
1. In the Application Navigator, select the Projects panel.
2.
Expand your Site Studio project SiteStudioDemo.
3. Expand Web Content, and then expand WEB-INF.
4. Right-click weblogic.xml and select Open.
5. Select Security and expand Security Role Assignments.
6. Click the Create button.
7.
For Role Name, enter WCMContributor.
3-4 Oracle Fusion Middleware Developers Guide for Site Studio for External Applications
8. In the Principals section, click the Create button.
For the newly created security role name add a principal a user that matches a principal that exists in your content server. For this tutorial we will use the
weblogic principal.
9.
For Principal Name, enter weblogic.
10. From the main menu, select File and then Save All.
3.2.3 Editing the Web Application Deployment Descriptor