Web Resource Types

A Web resource type represents a configuration object that describes the behavior of a content object.

A Web resource type can serve as one of the following objects:

  • Page

  • Page area in which you can arrange Web content

  • Web form that you can use to create Web content

The Web resource type concept represents an enhancement to the existing resource type concept in that it supplies additional settings in addition to the connection to the resource type of a resource. For example, a Web resource type is used to define which layout is used to display a resource of the type in question.

However, the main function of the Web resource type concept is to connect resources from Knowledge Management with objects from the Portal Content Studio in the form of layouts.

The configuration of the Web type resources is located in the portal at Start of the navigation pathSystem Administration Next navigation step System Configuration Next navigation step Knowledge Management Next navigation step Content Management Next navigation step Web Page Composer Next navigation step Web Content Types Next navigation step Web Resource Type.End of the navigation path

Parameter

Required

Description

Name

Yes

Name of the Web resource type

Published

No

Specifies whether the Web resource type exists as a page template

Requires Framework

No

Specifies whether a framework page is required for the display

A suitable framework page must be configured.

Allowed child types

No

Selection of the resource types that can be generated as children in this Web resource type

If this Web resource type is used as a page template, you have to specify the entries wpc_webarticle and wpc_webhtmlfile as well as the resource types that can be created on the page template as Web content.

Allowed parent types

No

Selection of the resource types that can be used as parents of this Web resource type

If this Web resource type is used as a Web form, you have to specify the entries wpc_content_folder and wpc_page as well as the page templates on which you want to create objects.

Allowed repositories

No

Selection of repositories in which the Web resource type can be created

If you do not make a selection, the Web repository type can be used in all repositories.

Allowed Layouts

No

Selection of a layout group that contains all layouts that can be used for the Web resource type that serves as a page template

In addition, you should specify a toolbar that contains the Layout command for changing the layout in the Toolbar parameter.

Default Layout

No

You use the layout template to create a connection between the Portal Content Studio and the portal for technical reasons.

If the Web resource type is used as a page, enter the layout template for the page.

If the Web resource type is used as a Web form or page area, you can specify a template that you created yourself or you can select the editcontainer layout template delivered by SAP.

Resource Type

Yes

Selection of the corresponding resource type

Toolbar

No

Selection of a toolbar that contains commands for the Web resource type

The toolbar is displayed in the upper area of the page editor if the Web resource type is added to the page.

Allowed RIDS

No

List of paths in whose instances the Web resource type can be created

You have to use the placeholder ** so that the command is available for creating the Web resource type in all folders of the site hierarchy. For more information, see the documentation that follows this table.

Example: /wpccontent/Cross-Site Content/**, **/Site-Content/**

Class Auto Create

No

Specifies the Java class for the automatic generation of content

If you enter a container in which only this Web resource type is permitted for editing, the Java class specified in this parameter automatically generates content for the container in question.

The class must implement the com.sap.nw.wpc.km.service.compoundprovider.ICompoundAutoCreate interface.

Description

No

More detailed description of the Web resource type

Factory implementation

No

Specifies the factory implementation required to create instances of this Web resource type

The factory implementation must implement the com.sap.sdn.wcm.km.extresource.IExtResourceFactory interface.

Use of the ** Placeholder in the Allowed RIDS Parameter

You must use the ** placeholder in the Allowed RIDS parameter so that the commands for creating new Web content are displayed in the folder hierarchy of all sites.

Below are some examples of the usage of the ** placeholder and its effect:

  • /wpccontent/My Folder

    The command for creating new Web content based on the new Web resource type is only available in the /wpccontent/My Folder folder.

  • /wpccontent/My Folder/**

    The command is available in the /wpccontent/My Folder folder and in its subfolders.

  • **/My Folder

    The command is available in the folder hierarchy in all folders with the name /My Folder .

  • **/My Folder/**

    The command is available in the folder hierarchy in all folders with the name /My Folder and in their subfolders.