How to hide authors from the Version info of Knowledge Article Content widget

Tom Boyle
Mega Expert

We would like to not advertise the authors/updaters/revisors of our Knowledge base articles on our Support Portal.

We are using article versioning and I have come unstuck when I try to remove the user from the Version text.

find_real_file.png

Here, I have blurred out the users, this is what we would like to remove.

I have looked into the HTML and believe this to be contained as part of version.versionText.

This also contains the date which we do want, so I don't want to remove the tag completely.

But can't find a way to edit the content of versionText.

Any ideas?

5 REPLIES 5

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi,

there is a way to hide the author by CSS. 

  1. Service Portal > Pages > kb_article
  2. Add .author{display: none;} in Page Specific CSS

Do the same for the other fields.

If I have answered your question, please mark my response as correct and/or helpful so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.

Thank you

Cheers
Alberto

Hi Alberto

 

That removes the author from the header but not from the Version Info:

find_real_file.png

Thanks

Tom

Tom Boyle
Mega Expert

We have been told by Hi Support that hiding this information is not possible OOTB with Article versioning available.

However that it is possible to customize:

"The versioning details in configured with script include: "KBVersioningSNC". The portal widget code or the kb_view page both calls this script include for retrieving version related details. Also, it's having some dependency on OOTB internal code, so through customization also you may not get all features. But you can try checking the above-mentioned script include."

We haven't been able to test this solution.

I'm hoping we are able to do it in another manner by editing the CSS but will see once we've had more time to look into it further.

EraShawn
Tera Contributor

I was able to remove the 'authored by' field from displaying in the portal article view by updating the 'Page Specific CSS' field on the page: 'Knowledge Article View' to include '.author{display: none;}'.


I was also able to remove the authored by field from the 'Most Useful' widget list on the article page by setting system property 'glide.knowman.search.show_author' to false.