Change e-mail subject
Release R11.2 Knowledge Tools
I needed to change the e-mail subject on e-mails that were sent out from Knowledge Tools.
This document describes how to make this change.
First, edit the kt_document_view.htmpl which is found in Web Screen Painter under the Interface "Default" and "Default" group.
There is a function called EmailDocument. In this function is a variable called url (around line 341) which spans multiple lines. I added another line:
"+KEEP.DOC_TITLE=" + "$args.TITLE" +
This is passing the title in the URL so we can read it from the e-mail page. As the title is truncated at 80 characters, there should be no URL line length issues.
The next document I edited was kt_email_document.htmpl which is under the "Analyst" Interface and "Default" group.
Around line 317 the subject is defined. I changed it from:
document.frm.txtSubject.value = "Knowledge Document: " + "$args.KEEP.DOC_ID";
to:
document.frm.txtSubject.value = "Knowledge Document: " + "$args.KEEP.DOC_ID " + "$args.KEEP.DOC_TITLE";
Save and publish both pages (no service restart required) and test the functionality. Open a KB article and click on the "email" link. Send a copy to yourself - you will find the e-mail subject format will have changed from:
Knowledge Base Document : ######
to:
Knowledge Base Document : ###### <KB title>