- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2023 10:54 AM
Hi,
I should be able to navigate as an end user to an article and be able to click on something that allows me to print the article (without printing the entire webpage).
When we open article on Service Portal and click on ctrl + P to print article then it is printing other things like Impersonate, Logout, Tours, I don't need this things to print. I need only KB article to be printed.
I have done ctrl + P and it is printing many things. Please see attached screenshot.
Can anyone please help me how to print article instead other things.
Regards,
Nivedita
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2023 11:53 AM - edited 06-19-2023 12:02 PM
Hello @niveditakumari ,
Please refer this share project "Add wordcount and print functionality on knowledge article (Portal)".
Go to this URL and download the update set and commit it. This is for two things: to count words in the knowledge base and also have print functionality. So if you don't want word count, then remove or comment that part of the code of the widget.
OR pls refer:
https://www.servicenow.com/community/developer-forum/printing-knowledge-article/m-p/1484570
@niveditakumari, Please mark my answer as "Accept as Solution" and "Helpfuls." If it works for you.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2023 02:57 AM
Hello @Community Alums,
I have downloaded that file. I follow to commit update set with retrieve update set but this is xml file.
Can you please tell how to commit that file in my instance.
It will show Knowledge Article Content(word/count) in widgets after committing this file then what is next step to achieve it.
Regards,
Nivedita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2023 04:36 AM - edited 06-25-2023 04:42 AM
Hello @niveditakumari ,
Open any Knowledge Article in Service Portal, ctrl+ right click on that Knowledge Article u will able to see these options. SS:
Before it change your application scope to "Knowledge Management-Service Portal". Only if you are using service portal. SS:
Select "Instance in page editor" and then scroll down, instead of "knowledge Article Content" in sp_widget choose "knowledge Article Content(word/print)" widget and click on save.
Before:
U need to change sp_widget to "knowledge Article Content(word/print)" . SS:
Now u will able to see "print" icon in KB article. SS:
Click on it, U will able to print only knowledge Article:
@niveditakumari, Please mark my answer as "Accept as Solution" and "Helpfuls." If it works for you.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2023 12:29 PM
Hello @Community Alums,
I have cloned Knowledge Article Content widget and added below code to client controller in that cloned widget Knowledge Article Content Print widget.
I have added Knowledge Article Content Print widget in instance in page editor.
It is not working. It is now showing print icon.
Can you please help me to achieve it.
Regards,
Nivedita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2023 11:13 PM
@niveditakumari , You don't need to do that where I mentioned cloning and adding the client controller. Only you need to change the widget (sp_widget) in the instance page editor from "knowledge Article Content" to "knowledge Article content (word/print)". Please read the above steps carefully and try to follow them accordingly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2023 10:36 AM - edited 06-26-2023 10:38 AM
@niveditakumari , For to commit, pls go to " retrieved update set" application menu then on import update set from xml option upload the update set. SS:
Then pls go to "update set to commit" application menu. Select Knowledge_content_page_wordcount_print update set and run Preview and then commit it.
Thank you!
