Hide Comments and Rating on specific knowledge Portal

sadif_raja
Tera Guru

Can anyone help to find the solution: Hide Comments and Rating on specific knowledge Portal.
Tried to do by the following ways, but it didn't work:

1. Knowledge Management Widget

2. System Properties

3. Roles

6 REPLIES 6

TrevorK
Kilo Sage

If you have a specific Knowledge Portal that needs something hidden, why not just use CSS (page level or theme level)? You can then continue using the same OOB widgets on multiple portals and rely on your specific portal styling to not display the Comments / Ratings. We have the same knowledge widget across a handful of portals and it looks different on each one (some very different). But we get all the advantages of the OOB widget as a result.

 

You don't want to modify the OOB widgets unless you really have to. Especially one like Knowledge that should see a lot of updates from SN as it's a huge value in their platform. Therefore, if you can use CSS to do the dirty work then do it. 

 

 

There can be other ways to do this but they are much more technically complex and have a lot more room for error so I'd recommend looking at this first. The worst case scenario is an upgrade changes the class you target and you have to rewrite a line of CSS which makes this incredibly low risk. For example, you might be able to extend the OOB Script Include by using KBViewModal (if the widget you use is using this, I pulled it from one of our portal sites) and then auto set the parameters based on the portal site that is called. It's getting to be a bit more technical but I'd think it's doable given your portal site has a unique URL. 

Let me check it again...

sadif_raja
Tera Guru

It didn't work for our case @TrevorK 

The CSS didn't work for you?

 

If you tell me the name of the widget itself you are using, I'll load it into a blank page and give you the CSS. I don't think I have run into something like this where I couldn't get a display:none working. It's a bit of a hack but not as much of a hack as modifying the widget.

 

If your portal is publicly accessible I can do it right on there too.