This section describes how to modify the Message Display window shown in Figure 5–3.
You can modify the following in the Message Display window:
Change the message display
Alter the layout of the window
Change the text of the fields
Display user-defined header fields
To modify the Message Display window, edit the appropriate files as follows:
To customize how the message appears, edit the listFrameHTML(doc) function in the msg_fs_lr.html file.
To customize the default text, edit the i18n[] values under Message Headers and Message in the lang/i18n.js file.
This section describes how to add and display user-defined header fields in the Message Display window.
Edit the listFrameHTML(doc) function in the msg_fs_lr.html file.
This example shows how to display the user defined field X-document-id in the Message Display Window.
Example 5–4 shows the edits made to the function listFrameHTML() in the msg_fs_lr.html file.
function listFrameHTML(doc) { .... var hdrstr = getHeaderStr(main.msgFrame.hdr[0], 'X-document-id') if(hdrstr != '') { s += <tr><td nowrap align=right valign=top width=5%' + main.base_line + ' bgcolor=' + main.chrome2 + '>' + main.font() + html('X-document-id') + nbsp + '</td>\\n<td ' + main.cellBgString + '>' + extra + main.font() + hdrstr + '</td></tr>\\n' } .... } |