powered by CADENAS

Manual

Manual

7.8.18.1.1. Create Media Variable

  1. Open work 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. Only the filters Key and Language are needed. You can close the two others.

    • The dialog area Derivation hierarchy is not needed normally. The selection is not relevant here.

    • Open the tabbed page HTML view. Only when clicking OK the displayed content is assigned to the selected key.

    • Preferebly use View 2 .

  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 tempate 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.

      The naming has to be done according to the following Schema:

      Variablename_HELP

      Example:

      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

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

    • On the tabbed page HTML view enter the desired content.

      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;">
      <div>
      p, li { white-space: pre-wrap; }
      </style></head><body style=" font-family:'Tahoma'; font-size:12pt;">
      <div>
      <p>The conveying direction determines the belt inlet (start) and the belt outlet...
      ...
       ...</p>
      <p><strong>Note</strong></p><p> ... 
       ...</p>
      <p><img src="bandbreiten.png" width="100%" height="auto" /></p>
      </div>
      </html>

      [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. Currently[a]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).

      [a] July 2017

    • Finally click on OK.

      -> The content is taken into the key.

      For checking purposes scroll with the arrow keys.

  5. In the project file, set the following entry in order to create the respective icon which calls the tooltip information.

    INFO(BNEL)=BNEL_HELP
    INFO(BNEB)=BNEB_HELP
    etc.

After successful publishing you can have a look on the result in PARTcommunity.

When clicking on the info icon, a tooltip with additional information is opened.

When clicking on the info icon, a tooltip with additional information is opened.