CSP Creating Pagelet Producer Resources and Pagelets

24-10 Oracle Fusion Middleware Administrators Guide for Oracle WebCenter Keep the following in mind when using the clipper: ■ If the back-end resource is accessed over HTTPS, make sure the Pagelet Producer Console is also accessed over a secure port. ■ If the clip source is protected by a login form or other form of authentication, make sure to configure Autologin for the parent resource as described in Section 24.4.4, Autologin . If you are using the vault to store credential values, make sure to capture the credentials prior to using the clipper. ■ If you are having problems with the clipper, make sure the configured pagelet URL can be loaded by the browser without redirects. If necessary, change the pagelet suffix to reflect the final URL loaded by the browser after following all the redirects.

24.4.6.5 Documentation

The Documentation page displays sample code to access the pagelet and preference editor using either the JavaScript or REST API.

24.4.7 Injectors

A web injector inserts content into a specified location in the proxied resource page. The content may be any text, including HTML, CSS, JavaScript, and pagelet declarations. To create a new web injector, select the Injectors section under the resource you want to use and click the Create icon in the toolbar. A new injector called new will be added to the list. Injectors have the following configuration pages: ■ Section 24.4.7.1, General ■ Section 24.4.7.2, Content

24.4.7.1 General

Enter a Name for the web injector. The injector can be applied to a subset of the resource by typing a URL pattern into the URL Filter box. The injector will be applied only to those URLs within the resource that begin with the text in the URL Filter box. If the box is empty or contains only a ’’, the injector will be applied to the entire resource. To restrict the injector to specific kinds of content, type a comma separated list of MIME types in the MIME Filter box. For example, texthtml restricts the injector to HTML content, while textcss only restricts the injector to CSS content. Define where in the resources output the injection occurs by selecting one of the following: ■ Top puts the content first in the page. Do not use this option to inject pagelet declarations. ■ Bottom puts the content last in the page. ■ The BeforeAfterReplace options put the content into the page relative to the entry provided in the field on the page.

24.4.7.2 Content

Content to be injected may be any text, including HTML, CSS, JavaScript, and pagelet declarations. Content can be entered using the text editor. If the content is HTML, it can optionally be edited using the HTML editor.