- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2022 10:32 PM
hello.
Regarding the number of views counted when reading a knowledge article, I would like to customize it as follows.
・Do not count up the number of views when the browser is updated.
・Do not count up when a user with a specific role browses.
Where should I customize?
Thank you.
Ro
Solved! Go to Solution.
- Labels:
-
Personal Developer Instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2022 11:37 PM
Sorry forgot to mention widget part. If you look at Knowledge article content widget in server script the below line
// this function is called by script include KBViewModel and function KBViewModel. So you need to find a way to modify here
function handleViewCountIncrement(){
var incrementedViewCount = new global.KBViewModel().KBViewModel(knowledgeRecord);
if(incrementedViewCount)
data.viewCount = parseInt(incrementedViewCount); // this is the count shown on article widget called in HTML part
}
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2022 02:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2022 07:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2022 07:07 PM
okay I think your not in Sandiego version in that case in your widget HTML look for data.view // this is what will get the count in HTML and in server script look for the line data.view and check from where it is getting the view count
Harish
