powered by CADENAS


Manual Create Media Variables in PARTproject

The following explains how to create Media Variables in PARTproject. Alternatively they could also be created PARTtemplateDesigner (see Chapter 10, PARTtemplateDesigner - Create datasheets ).

  1. Open working area

    Open PARTproject.

    Under Project selection, select the project for which you want to create Media Variables.

    Under Edit project, select the tabbed page Documents.

    Preparations and basics

    The working area has a lot of functions from which however, only a small part is needed.

    Some important points, which will help to get you started:

    • The terms Key and Media variable are used as synonyms.

    • On the right side, you can find the filter areas Key, Language, Template and Role, which can be opened or closed.

      When clicking on the icon Choose nothing you can be sure that no filters are accidentally set.

    • The dialog area Derivation hierarchy is only needed if contents have been created for a special project, however, then shall be made available for all projects, for example.

    • Open the dialog box Properties (Text view / HTML view) by clicking on ....

      When confirming with OK the displayed content is applied to the selected key and the dialog box is closed.

  2. Select language

    At first create the default language. That's why you have to select "default" under language. (Languages without content are shown grayed out.)

  3. Create new Media Variable

    In the dialog area Key, click on the icon New Entry .

    [Note] Note

    If there is no template directory available yet, a query appears: "File does not exist. Should it be created?"

    Confirm by clicking on Yes.

    -> On catalog level, a directory "_template" with the file key.class is created.

    Media variables are global variables. The definitions are managed on catalog level under \<catalog>\_templates\key.class. This file will be created in any case at the first time.

    When clicking on Yes, the dialog box Insert entry is opened (as in each further case when creating a new Media Variable).

    • In the input field, enter the name of the Media Variable to be created.

      If you create variables for additional tooltip information in PARTcommunity (compare Fig. „Tooltip with additional information on PARTcommunity:“), please use the following Schema:



      For a variable BNEB, you want to create a HELP variable: Then the name has to be BNEB_HELP.

    • In the list field, choose the option HTMLTEXT.

      Only the option HTMLTEXT, may be DIR in addition, are needed for the creation of Media Variables.

      • HTMLTEXT: This option enables embedding of pictures and basic HTML functions such as bold, italic, etc.

      • DIR: This option enables the creation of directories which can be used for Sorting. Sorting is not relevant for publishing, but only serves for a better overview.

    • Translation: If translations shall be performed via tabbed page Translation in the course of the whole catalog translation, in any case activate the checkbox. Alternatively you could translate Media Variables on the tabbed page Documents only.

    • Publish: The checkbox should always be activated. Only deactivate for internal content which shall be excluded from generation.

    • Sort: This option should only be displayed if DIR is selected in the list field.

      With the help of DIR you can create directories which can be used for sorting by moving Media Variables into them. For publishing sorting is not relevant. It only serves for a better overview.

    Confirm by clicking OK.

    -> In the first step, the new key is displayed grayed out. Only after assigning content, the key will be activated (and displayed in black color).

    Numerical values behind the keys show how often the variable occurs (total number over all projects, languages, roles, etc.).

  4. Assign content

    [Note] Note

    Possibly restarting of PARTproject is needed, in order for the newly created Media Variable to become visible in the menu area Variables.

    • In the dialog area Key, select the newly created key.

    • Click on the button ....

      -> The dialog box Properties with the tabbed page Text view is opened.

    • On the tabbed page Text view or HTML view, enter the desired content.

      HTML example:

      <html><head><meta name="qrichtext" content="1" /><style type="text/css">
      p, li { white-space: pre-wrap; }
      </style></head><body style=" font-family:'Tahoma'; font-size:12pt;">
      p, li { white-space: pre-wrap; }
      </style></head><body style=" font-family:'Tahoma'; font-size:12pt;">
      <p>The conveying direction determines the belt inlet (start) and the belt outlet...
      <p><strong>Note</strong></p><p> ... 
      <p><img src="bandbreiten.png" width="100%" height="auto" /></p>

      [Note] Note

      Use browser compliant HTML.

      Do not use CSS and style information for elements (except in the <head>Tag).

      You may insert pictures. These have to be stored in the same directory as the respective project file. Relative paths are not supported.

      For width and hight declaration use "width" and "height" tags. Pictures larger than 450px should have height=auto and width=100% (see above example).

    • Finally click on OK.

      -> The content is taken into the key.

  5. Optional:

    If the content shall be used on PARTcommunity as additional tooltip information (HELP information), please set the following entry in the project file:


    Through this, the icon calling the tooltip information is created.

Example for additional tooltip information on PARTcommunity:

Tooltip with additional information on PARTcommunity:

Tooltip with additional information on PARTcommunity: