Entering content frame

Procedure documentation Creating an OTH File Locate the document in its SAP Library structure

Use

You have to create an OTH file in order to be able to use image maps in CM.

 

Prerequisites

The following objects have been created.

·        An image map with several areas.

·        A folder that you want to display as an image map.

 

Procedure

Create an OTH file in the etc/oth directory for each image map. Use the extension .oth for the file.

You can use the following template:

 

<?xml version="1.0"?>
<ObjectTypeHandler Name="Name" Class="com.sapportals.wcm.service.objecttypehandler.GenericObjectTypeHandler">
      <SelectionCriteria>
            <Paths>
                  <Path>path to folder</Path>
            </Paths>
      </SelectionCriteria>
      <Properties>
            <Property Key="rndBreadcrumbStyle" Value="horizontal"/>
            <Property Key="rndCollectionRenderer" Value="ImageMapRenderer"/>
            <Property Key="rndLayoutController"   Value="SimpleLayoutController"/>
            <Property Key="rndMap" Value="name of image map"/>
      </Properties>
      <Actions/>
</ObjectTypeHandler>

 

Modify the entries in bold.

 

Entries in the OTH File

Entry

Description

Name

Enter the name for the OTH settings.

Path to folder

Enter the path to the folder that is to be displayed as an image map.

Name of image map

Enter the name of the image map to be used.

 

Note

If you do not want to display breadcrumbs in the window, remove this line from the OTH file:

<Property Key="rndBreadcrumbStyle" Value="horizontal"/>

It is also possible to enter other parameters that influence the layout directly into the OTH file.

 

You have to reload the object type handler in order that the specifications of the OTH file take effect in the system. If you are listed as a user in the debugging settings, you can open the link Rendering Information in any iView. Click on OTH Overview in the window that appears, and then click on Reload in the next window.

 

Leaving content frame