Entering content frame

Procedure documentation Changing Labels and Symbols for Entry Points Locate the document in its SAP Library 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 the section Importing an Example Project Into SAP NetWeaver Developer Studio.

 

Procedure

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

 

...

       1.      In 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

 

       2.      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 \u00F6ffentlichen Dokumente

public_d=Hier finden Sie unseren \u00F6ffentlichen 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 =Ü

 

       3.      Export and deploy the PAR file that contains the bundle files (see Exporting and Deploying PAR Files).

 

       4.      In the Configuration iView, create a new entry under Content Management ® Repository Managers ® Entry Point Providers ® Entry Point Provider for Static Folders. 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

 

       5.      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 file public.img to the directory /etc/public/mimes/images/entrypoints.

 

Result

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

 

 

Leaving content frame