Including Oracle Site Studio Manager Functionality

About Site Studio for External Applications 1-11

11. Select Create as XML Document. This creates a JSP page written in XML syntax

using JSPX as the file extension.

12. Select Register Site File to register the template with your site. In most cases, you

will want your template registered with your site. 13. Select the template type from the Asset Type drop-down list. 14. Provide a site file ID that identifies this file as a template for this site. 15. Provide a description for the new template.

16. Click OK.

17. From the main menu, select File, then select Save All.

See the topic Creating and Editing Local Templates in the online help for additional information on creating and editing JSPX templates stored locally on JDeveloper.

1.10.2 Creating a Remote JSPX Template

Follow these steps to create a remote JSPX template stored on Oracle Content Server:

1. From the main menu, select View, then Site Studio, and then Site Assets.

2. From the Project drop-down list top left, select your project. If your project is not listed, it means you are not logged in to your connection. From the Application Resources panel, expand Connections, then Site Studio, then right-click the connection and select Login. 3. From the Asset Type drop-down list top right, select a template type. For example, Page Template, Region Template, or Subtemplate.

4. Click the Create New Asset Type button and select New JSPX Template.

5. On the Create New Asset dialog, enter a title and content ID. For example, ss-homepage-pt.

6. Click OK.

7. On the Site Asset window, click the Refresh button to view your new Content

Server template. See the topic Creating and Editing Remote Templates in the online help for additional information on creating and editing remote JSPX templates stored on Oracle Content Server.

1.11 Including Oracle Site Studio Manager Functionality

Oracle Site Studio Manager provides an environment in which site managers can make changes to the site hierarchy such as adding and removing sections, changing the page template assigned to a section, and modifying several site properties. Oracle Site Studio Manager functionality can be enabled on external sites that use Site Studio for External Applications. However, due to the different environment, Manager functionality in an external application has several differences from Oracle Site Studio Manager running in an Oracle Content Server instance. These differences include how Manager functionality is provided and launched, how externally managed JSPJSPX page templates are handled, and how preview URLs are generated. 1-12 Oracle Fusion Middleware Developers Guide for Site Studio for External Applications Including Oracle Site Studio Manager in Your Site To support Oracle Site Studio Manager functionality with Site Studio for External Applications, a site-manager page is provided. This page hosts the Oracle Site Studio Manager functionality. To include Oracle Site Studio Manager functionality in your site, you must provide a link from your site to the site-manager.jsp file. To do this, the page template assigned to the Manager section must include the following code: ?xml version=1.0 encoding=UTF-8? jsp:root xmlns:jsp=http:java.sun.comJSPPage version=2.1 xmlns:c=http:java.sun.comjspjstlcore xmlns:wcm=http:www.oracle.comjspwcm c:redirect url=wcm-contribwcmsupportmanager site-manager.jsp?siteID={wcmContext.siteID} jsp:root The redirect tag redirects the browser to the site-manager.jsp file. When a user navigates to the Manager section of the site they will automatically be redirected to this page. Refer to the Administrator and Managers Guide for Oracle Site Studio for details on using Oracle Site Studio Manager and additional information on Oracle Site Studio Manager functionality. Note: The code example used in this section assumes you have created a section on your site called Manager and that this section is marked as a contributor-only section so that it is only visible in contribution mode. 2 Understanding Site Studio Web Sites 2-1 2 Understanding Site Studio Web Sites Site Studio provides a powerful set of tools that can allows you to design, build, and maintain web sites efficiently. To get the most out of these tools, it is useful to understand some basic concepts about Site Studio web sites. This section covers the following topics: ■ Section 2.1, Separation of Site Presentation and Content