Show TOC

Creating Content Templates for Info ObjectsLocate this document in the navigation structure

Use

Info objects that are edited with one of the Knowledge Warehouse standard editors (MS Word, MS PowerPoint, Visio) and info objects that are edited directly in HTML can be based on content templates which impose a particular layout on the document (featuring, for example, standard graphics, headings, etc.). You may also use content templates with "Multimedia" info objects if they are created with one of those editors.

For an author to be able to use a content template for a new content object, its object class must have the instance attribute content type ( IWB_TYPE). This attribute is used to associate new objects with different templates, depending on the attribute value chosen when the object is created. The templates themselves are content objects of the same class for which they serve as templates. When an author creates a new content object of a particular content type, a copy of the pertinent template object is used as the initial document.

Example

When you create an info object of class Topic in the area Documentation you select one of several possible content types (e.g. Process). The content type you select determines which content template is used as a blueprint for the new info object.

The attribute content type figures as an instance attribute in the definition of the info object class Topic in the Documentation area's content model. This is a prerequisite for being able to maintain the attribute in the authoring environment.

An application which uses the content model of an existing Knowledge Warehouse area may still want to use its own content templates. If the application therefore wants to extend the set of content templates that is available with an info object class, it can do so by specifying additional possible values for the content type attribute and by checking-in the desired templates. Both steps are performed by the program IWB_TEMPLATES.

To make a new content template available for a particular info object class:

  1. Start the ABAP Editor (se38) and execute the program IWB_TEMPLATES.

  2. On the screen Choose Area and Context, specify the area and the context (Language, Enhancement, and Release) in which you want to use the template, and choose Execute.

    To add or remove the context parameters enhancement and country use the Context menu.

    Note

    If no content templates do yet exist for the area you are prompted with a dialog box asking if a folder for content templates should be created . If you confirm the folder TEMPLATES.<area name> is created.

  3. On the screen Template List press the Create template pushbutton.

  4. In the following dialog box select the info object class.

  5. In the following dialog box enter the name of the content type and a description. When prompted for a transport request, enter appropriate data.

  6. In the following dialog box ( Select source object) select the file to be used as content template and choose Open. The file format must correspond to the editing format of the info object class.

  7. In the next dialog box ( Select display object) select the file that is the HTML format version of the content template. (You need the HTML version of the content template only if you want to display the template itself in the browser. As the template is used in editing format when you create a new info object, the HTML version it is not strictly necessary, and you may select a dummy HTML file).

  8. In the dialog box enter a title for the template info object and choose Continue.

    Note

    The possible values for the attribute content type ( IWB_TYPE) are stored in table IWPROPVAL. Table IWPROPVAL contains all possible values for info object attributes whose value range is defined extensionally, i.e. by enumerating the values.