Show TOC

 Changing Labels and Symbols for Entry PointsLocate this document in the navigation structure

Use

The following example explains how you define suitable labels and descriptions in different languages for an entry point. It also tells you how to use a new symbol for an entry point.

 

Prerequisites

You have worked through the steps that are described in Creating an Example Project in SAP NetWeaver Developer Studio .

 

Procedure

You want to use the /projectshare/public folder as an entry point.

 

  1. In the SAP NetWeaver Developer Studio, create a bundle file for each language. Use a text editor to do this. Note the following conventions:

    <bundle file name>_<language>.properties

    For example: 

    my-entrypoint-label_de.properties

    my-entrypoint-label_es.properties

    You also need a bundle file for the default language (usually English).

    my-entrypoint-label.properties

 

  1. Create entries for the title and descriptions of the entry point in these files.

    For example:

    For the German bundle file my-entrypoint-label_de.properties:

public=Unsere öffentlichen Dokumente

public_d=Hier finden Sie unseren öffentlichen Dokumente.

For the Spanish bundle file my-entrypoint-label_es.properties:

public=Nuestros Documentos Públicos

public_d=Aquí se encuentran nuestros documentos públicos.

In the default bundle file my-entrypoint_label.properties:

public=Our Public Documents

public_d=Here you can find our public documents.

 

Note

Note that the key for the description (<folder_name>_d) can have a maximum of 32 characters. If the name of the folder is longer than 30 characters, cut it down to 30.

Remember to use Unicode notation for umlauts and special characters. Below are some examples for German umlauts:

\u00E4 =ä

\u00C4 =Ä

\u00DF =ß

\u00F6 =ö

\u00D6 =Ö

\u00FC =ü

\u00DC =Ü

Do not use spaces in keys. Use underscores instead.

 

  1. Build and deploy the development components that contain the bundle files (see Building and Deploying Development Components ).

 

  1. In the portal, choose System Administration → System Configuration → Knowledge Management → Content Management → Repository Managers → Entry Point Providers → Entry Point Provider for Static Folders and create a new entry. Note that you have to enter the name of the bundle file with your package structure, but without an extension.

    Name        = my_folders

    Bundle File = com.<%companyname%>.km.resource.bundle.my-entrypoint-label

    Active      = Activated

    Display First Level = Activated

    Priority    = 100

    Targets     = /projectshare/public

 

  1. Use a graphics program to create a file suitable for the folder content in GIF format and of the required size. Change the name to public.img.

    Upload the public.img file to the /etc/public/mimes/images/entrypoints directory.

 

Result

The specified graphics file and the name and description of the entry point are displayed in the Entry Points iView.