Configuring trigger icons
Configure the icons used for triggers in the user interface in the Experience Optimization Editor.config configuration file.
Procedure
- On your Content Manager Server, open IIS.
- Go to the %TRIDION_HOME%/web/WebUI/Editors/SmartTarget/Configuration/ directory and open the Editor.config file in a text editor.
- In the
<st:triggertypeiconmappings>section, add a<st:icon triggerTypeName="name">icon</st:icon> elementwhere:triggerTypeNameis thenameof the trigger as defined in the initial-triggertypes.json configuration fileiconis 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> - Create trigger type icons with the following format:
configuration name.size.color.pngwhere:configuration nameis the icon name specified in the<st:triggertypeiconmappings>sectionissize32or16(pixels): 32 is used in the triggers list and 16 is used in the trigger types drop-down menucoloris the color version of the icon (monoandmono-darkversions of the icons are used elsewhere in the user interface)
- 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> - Save and close the file.