Creating an OTH File
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
- To create an OTH file, choose Content Administration → KM Content → root → etc → oth.
- Choose Folder → New → Text File.
You have to create an OTH file in the etc/othdirectory 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. |
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.