Show TOC

Function documentationPresentation Design of HTML-Based Contents Locate this document in the navigation structure

 

You can use design templates to adjust the layout and format of the contents of the HTML-Based Documents area displayed in the Web browser so that they satisfy your requirements.

A number of templates for presenting the contents of this area are delivered with the HTML-Based Documents area. SAP KW users can modify these templates or create new ones, for example, to give the contents a specific company design.

The templates are stored as info objects in the folder STYLES of the HTML-Based Documents area. Like all info objects, they also are subject to the design templates of version management for SAP KW and can exist in different languages and releases.

The templates consist of HTML files, CSS Style Sheet files, and JavaScript files.

Integration

The contents are linked with design templates either by maintaining the appropriate attributes of the individual info object or, for entire info object classes and areas, by maintaining class or area attributes in the content model of the area (see Creating a Content Model).

Features

You can use the design template to:

  • Define the number, size, and order of the frames into which the browser window is divided

  • Define format attributes such as the background color and font type for the different frames

  • Adjust the presentation of content objects in the content frame to specific requirements

The standard frameset of the Internet Knowledge Server for outputting contents includes a banner frame, a TOC frame for displaying structure objects, and a content frame for displaying content objects.

This graphic is explained in the accompanying text.

Standard Frameset

Modification Options

Different aspects of the presentation design can be defined using three different kinds of design template.

  • Frameset layout (KWN_FRAME)

    The number, size, and frame arrangement in the browser can be defined with info objects of this class. A frameset layout must contain exactly one TOC frame and one content frame. It can also contain any number of other frames.

  • Style sheet (KWN_STYLE)

    Format attributes such as the background color and font type of the HTML elements displayed in the frames can be defined with info objects of this class.

  • Content layout (KWN_LAYOUT)

    The display of contents in the content frame can be controlled with info objects of this class. This is especially useful if references between different parts of an info object are mirrored in the content frame design. An example of this is the synchronous output of different elements of an info object to different subframes of the content frame.

Context-Specific Design Templates

As with other info objects, versions that are valid for a certain context can also be created from design templates. Design templates can therefore be specific to a certain language and (enhancement) release context.

Design templates of the same or of the most recent older context are used for the contents of a specific context displayed in the browser.

Example Example

You maintained contents in contexts /KWCUST/KN, Release 1.0, 2.0, and 3.0. You created a certain frameset layout in context /KWCUST/KN, 1.0 and changed this frameset layout in context /KWCUST/KN, 3.0. The presentation of contents of Releases 1.0 and 2.0 is controlled by the frameset layout created in Release 1.0. The presentation of contents of context /KWCUST/KN, 3.0, however, is controlled by the version of the frameset layout modified in Release 3.0.

End of the example.