26 Working with Content Presenter Templates

This chapter describes how to create and manage Content Presenter templates on the Shared Assets page (for all portals) or the Assets page (for an individual portal).

This chapter includes the following topics:

Permissions:

To perform the tasks in this chapter, you must be a portal moderator or a portal member with the portal-level permission Assets: Create, Edit, and Delete Assets (standard permissions) or Assets: Create, Edit, and Delete Content Presenter Templates (advanced permissions).

For more information about permissions, see Section 29.1, "About Roles and Permissions for a Portal."

26.1 About Content Presenter Templates

A Content Presenter template defines how Content Presenter renders content items on a portal page. WebCenter Portal provides several out-of-the-box Content Presenter templates to get you started, or your application developer can also create new custom display templates (as described in the "Creating Content Presenter Display Templates" chapter in Oracle Fusion Middleware Developing Portals with Oracle WebCenter Portal and Oracle JDeveloper).

A Content Presenter template can handle either single content items, multiple content items, or combinations of the two. For example, a multiple content item template might render tabs for each item and then call a single item template to render the details of a selected item.

When you add a Content Presenter task flow to a page, you will select a Content Presenter template in the Content Presenter Configuration dialog (see Chapter 33, "Publishing Content Using Content Presenter").

26.2 Creating a Content Presenter Template

If the out-of-the-box Content Presenter templates do not meet your needs, an application developer can create new custom display templates using JDeveloper, as described in the "Creating Content Presenter Display Templates" chapter in Oracle Fusion Middleware Developing Portals with Oracle WebCenter Portal and Oracle JDeveloper.

You can import custom Content Presenter templates using the Upload action (see Section 20.6.2, "Uploading an Asset").

26.3 Managing Content Presenter Templates

The following options are available on Content Presenter section of the Assets or Shared Assets page to enable you to manage Content Presenter Templates:

  • Delete—You can delete a custom Content Presenter template when it is no longer required. You cannot delete an out-of-the-box template.

    For more information, see Section 20.5.7, "Deleting an Asset."

  • Upload—You can upload an archive file that contains a Content Presenter template that has been developed using JDeveloper.

    For more information on uploading a template, see Section 20.6.2, "Uploading an Asset."

    Your WebCenter Portal developer can create Content Presenter templates as described in the "Creating Content Presenter Display Templates" chapter in Oracle Fusion Middleware Developing Portals with Oracle WebCenter Portal and Oracle JDeveloper.

    Note:

    The Download action is not active for out-of-the-box Content Presenter templates.

  • Security Settings (Actions menu)—Each Content Presenter template has an associated Security Settings dialog that enables you to customize the security on the template.

    For more information, see Section 20.5.6, "Setting Security for an Asset."

  • Show Properties (Actions menu)—Each Content Presenter template has an associated Show Properties dialog that summarizes useful information about it.

    For more information, see Section 20.5.1, "Viewing Information About an Asset."

  • Edit Source (Actions menu)—You can directly edit the source code of a custom Content Presenter template. You cannot edit an out-of-the-box template.

    For more information, see Section 20.4.2, "Editing the Source Code of an Asset."