Change Knowledge Article Template Preview for Standard Article Template
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Does anyone know where can i change the article template preview for the Standard article template?
It is not showing in Article templates.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
8m ago
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
- Navigate to All > System Definition > Script Includes.
- On the Script Includes page, in the Name field, enter ArticleTemplateUtilSNC.
- Open the ArticleTemplateUtilSNC record.
- On the ArticleTemplateUtilSNC page, copy the following code from the Script field.
setPreviewTextForStandardArticle: function(){ return null; }, - On the Script Includes page, in the Name field, enter ArticleTemplateUtil.
- Open the ArticleTemplateUtil record.
- 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; }, }); - In the Script field, remove null and enter a preview text.
- Select Update.
Result
The modified preview text displayed on the standard article template selector.
