Remove "Latest Version" Link in Knowledge View

Bryan12
Tera Contributor

Hi Guys,

Can someone point me to the right record to remove this OOB link in Knowledge view? Appreciate any help.

find_real_file.png

1 ACCEPTED SOLUTION

looks like it is in this macro:

/nav_to.do?uri=sys_ui_macro.do?sys_id=b74cff91c30031000096dfdc64d3ae65

look at that file starting around line 24. but this is already only shown if showHistory is marked true. This comes from the KBViewModelSNC script include. You could consider overriding the _populateAdditionalInformation() function in the KBViewModel script include. that is where you can override default behaviors in the first mentioned script include.

Otherwise, you could consider customizing the macro I posted above to remove it, but then you are going to have upgrade conflicts.

Perhaps the easiest way to remove it would be to add this css

#versionNumber {
  display: none;
}

to this style sheet:

/nav_to.do?uri=content_css.do?sys_id=b3ba3821d73221004792a1737e610382

 

View solution in original post

9 REPLIES 9

Bryan12
Tera Contributor

This really works! Thanks Jon Barnes!

SR20
Tera Contributor

Hi Bryan, How did you fix using CSS or overriding script? Thanks 

Anusha30
Kilo Contributor

I have a kind of similar requirement- by default the latest version should show all the versions as soon as the article loads, I could fix it in the Native view but need inputs how it is done in portal view?

Aniko Hegedus
Tera Expert

Hi,

You can hide the versions on the portal if you clone the "Knowledge Article Content" and set the "how Article Versioning Information" to false.

find_real_file.png

Cheers,

Aniko

Hi Aniko,

But this is not a good practice right?

Any other alternate please?