Change Knowledge Article Template Preview for Standard Article Template

lsaulon
Tera Contributor

Does anyone know where can i change the article template preview for the Standard article template?

It is not showing in Article templates.

lsaulon_1-1778107727630.png

lsaulon_2-1778107741015.png

 

1 REPLY 1

Tanushree Maiti
Kilo Patron

Hi @lsaulon 

 

Refer servicneow documentation: Configure the preview text setting for a standard article template 

 

For Preview sample text , refer: Would like to change the default article preview sample text for the "Standard" article template. 

 

Role required: admin

Procedure

  1. Navigate to All > System Definition > Script Includes.
  2. On the Script Includes page, in the Name field, enter ArticleTemplateUtilSNC.
  3. Open the ArticleTemplateUtilSNC record.
  4. On the ArticleTemplateUtilSNC page, copy the following code from the Script field.
    setPreviewTextForStandardArticle: function(){
                  return null;
           },
  5. On the Script Includes page, in the Name field, enter ArticleTemplateUtil.
  6. Open the ArticleTemplateUtil record.
  7. On the ArticleTemplateUtil page, modify the code in the Script field by pasting the copied code as shown.
    var ArticleTemplateUtil = Class.create();
                     ArticleTemplateUtil.prototype = Object.extendsObject(ArticleTemplateUtilSNC,{
                     type: 'ArticleTemplateUtil',
    		    setPreviewTextForStandardArticle: function(){
                             return null;
                     },
                     });
  8. In the Script field, remove null and enter a preview text.
  9. Select Update.

Result

The modified preview text displayed on the standard article template selector.

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: