Documentation Center

Configuring trigger icons

Configure the icons used for triggers in the user interface in the Experience Optimization Editor.config configuration file.

Procedure

  1. On your Content Manager Server, open IIS.
  2. Go to the %TRIDION_HOME%/web/WebUI/Editors/SmartTarget/Configuration/ directory and open the Editor.config file in a text editor.
  3. In the <st:triggertypeiconmappings> section, add a <st:icon triggerTypeName="name">icon</st:icon> element
    where:
    • triggerTypeName is the name of the trigger as defined in the initial-triggertypes.json configuration file
    • icon is the file name of the icon displayed for the trigger in the user interface
    <customconfiguration>
        <clientconfiguration>
              <st:triggertypeiconmappings>
                    <st:icon triggerTypeName="Session - Length">visitor-context-session-length</st:icon>
                    <st:icon triggerTypeName="Session - Original Referrer">visitor-context-referrer</st:icon>
                     ...
          </st:triggertypeiconmappings>
        </clientconfiguration>
    </customconfiguration>
  4. Create trigger type icons with the following format: configuration name.size.color.png
    where:
    • configuration name is the icon name specified in the <st:triggertypeiconmappings> section
    • size is 32 or 16 (pixels): 32 is used in the triggers list and 16 is used in the trigger types drop-down menu
    • color is the color version of the icon (mono and mono-dark versions of the icons are used elsewhere in the user interface)
  5. Add the icons to the folder ThemeFolder/Images/Icons/Trigger Type Icons/, where ThemeFolder is specified in the Experience Optimization Editor.config configuration file in the following section:
    <settings>
       <theme>
          <path>/Themes/Carbon/</path>
          <resourcegroup>Tridion.Web.UI.Editors.SmartTarget.Theme</resourcegroup>
      </theme>
    </settings>
  6. Save and close the file.