Aras Innovator Platform

Change the Secure Message Template Style

To change the Secure Message Template Style, do the following:

  1. Login to Aras Innovator as an administrator.
  2. Go to Contents --> Administration --> ItemTypes.
  3. Run the search and open a secure social enabled ItemType for edit, for example, Document.
  4. In the ItemType window, select the Secure Social tab.
  5. Right-click the DiscussionTemplate in the Relationship grid and select Secure Social --> Open in the context menu.
  6. In the DiscussionTemplate item tear-off window, click the DiscussionTemplateView tab.
  7. Click the ItemType ID in SM template property.
Note
Because of difference between Windows and Linux file systems it is required to use OS-specific path separator in paths. Remember that Linux file system is case sensitive so file names ./path/to/file.xml and ./path/to/File.xml are different. For more information about cross-platform development please see section Cross-platform development in the Aras Innovator 37 - Programmer’s Guide document.

Figure 17. This opens the SecureMessageViewTemplate Item tear-off window.

Figure 18.

  1. In the Template field, for example, replace string: <div id="messageText” class="ssvc-message-text">

    with

    <div id="messageText” class="ssvc-message-text”

    style="color: red

    ";

    ">

Note
Comment editing is currently unsupported in modified templates. It is only supported in the default SecureMessageViewTemplate.

  1. Save, Unclaim and Close the windows.
Note
The described subsequence of steps will result in applying change in the style of displaying secure messages for all the ItemTypes from which modified item of SecureMessageViewTemplate is referenced from. In Order to apply change to items of one specific type only – new item of SecureMessageViewTemplate should be created (modified, as desired) and referenced from mentioned itemtype (DiscussionTemplateàDiscussionTemplateViewàSM template […]).