Working Through Configuration Steps for New Web Forms 
You must work through several configuration steps in the Knowledge Management (KM) configuration to be able to use new Web forms with the Web Page Composer.
You require a separate resource type in KM for each new Web form.
In the portal, navigate to .
Create a separate resource type for the Web form.
Enter values for the Name and Resource Type ID parameters.
Note
Enter the same information in both parameters.
Activate the Reserved for Application parameter so that the resource type can only be used for Web Page Composer purposes.
If you are using a bundle file, enter this in the Bundle File parameter.
Optional: Specify the image to be used as a symbol for the resource type.
You can optionally specify an image to be used as an icon for your Web form in the page container and for the corresponding content template. To do this, specify the file name and, if necessary, the subfolder name, for example, <myicon>.gif or <subfolder>/<myicon>.gif in the Icon parameter.
Note
The file must be stored in the folder /etc/public/mimes/images or in a subfolder thereof.
For more information, see Resource Types.
To assign the resource type, you require a separate Web resource type in the configuration of the Web Page Composer.
In the portal, navigate to
To create the Web resource type for the page with predefined values, search for the wpc_webarticle instance, select it, and choose Duplicate.
Make sure that the following values are entered in the following parameters:
Parameter |
Value |
|---|---|
Name |
Change the name. Use the name of the resource type used in the previous step. |
Resource Type |
Specifies the assigned resource type. Choose the resource type that you just created for the Web form. |
Description |
Description of the resource type |
Factory implementation |
Specifies the factory implementation required to create instances of this Web resource type. You must use com.sap.nw.pcc.kmfacade.factory.XMLDocumentBaseFactory for all resource types that rely on the default rendering mechanism (Web resource types that are based on an XML definition and use XSL transformation). Therefore, do not change the value in this parameter, unless you use a custom rendering mechanism. |
Renderpath |
Enter the complete ID of the Web content template iView of the new Web content type. For more information, see: Creating iViews for New Web Forms. |
In the portal, navigate to .
Choose New to create a new stylesheet object and specify the path to the XSL file and other parameters.
Parameter |
Required |
Description |
|---|---|---|
Name |
Yes |
Name of the configuration object |
Bundle File |
No |
Specifies the bundle file in which the key and label for the object are stored. |
Key for Description |
No |
Specifies the corresponding key for the label containing the description of the object. The key is stored in the bundle file. |
XSL Location |
No |
Specifies the XSL file including the path. The XSL files have to be stored in a subdirectory of the /etc repository. |
For technical reasons, the stylesheet object must be entered in a stylesheet group.
In the portal, navigate to .
Choose New to create a new stylesheet group and choose the stylesheet object that you have just created. Specify the other parameters.
Parameter |
Required |
Description |
|---|---|---|
Name |
Yes |
Name of the configuration object |
Styles |
No |
Specifies the stylesheet objects that are used in this group. Enter the stylesheet object from the previous step here. |
Description |
No |
Description of the configuration object |
In addition to the XSL file, you must also reference the XML file that describes the new Web form. Create a new document type for the Web form and specify the path to the XML file.
In the portal, navigate to System AdministrationSystem ConfigurationKnowledge ManagementContent Management, choose .
Choose New to create a new document type and choose the stylesheet group that you just created. Specify the other parameters.
Parameter |
Required |
Description |
|---|---|---|
Name |
Yes |
Technical name of the Web resource type |
Default style |
Yes |
Specifies the stylesheet that is to be used for displaying all objects created using this Web form. Select the stylesheet object that you just created. |
Resource Type |
Yes |
Specifies the resource type assigned to each object created using this Web form. Select the resource type that you just created. |
Style Group |
Yes |
Specifies the stylesheet group to be used. This group contains the stylesheets that can be used to display objects created using this Web form. Select the stylesheet group that you just created. |
Bundle File |
No |
Specifies the bundle file in which the key and label for the object are stored. |
Key for Description |
No |
Specifies the corresponding key for the label containing the description of the object. The key is stored in the bundle file. |
XML Location |
No |
Specifies the XML file including the path. The XML files are to be stored in a subdirectory of the /etc repository. |