How to hide the number shown on the portal for total KB articles in each category

bostonsnow
Kilo Guru

Hello all,

Does anyone know how to hide the number shown next to Knowledge categories on the portal?

find_real_file.png

Thanks!

Mike

1 ACCEPTED SOLUTION

rajneeshbaranwa
Giga Guru

Navigate to the designer view of KB_view2 page and open it in designer view. Click on Pen Icon in KB Categories - KBv3 and select Omit Badge counts. 

 

This will remove the count from the widget

 

find_real_file.png

View solution in original post

17 REPLIES 17

Hello Jaspal, sorry, I missed that reply!

I just tried it and it did not hide the KBA counts.

Here is what I entered:

----------------------------------

<ul class="list-group category-list" role="list" aria-label="${Categories}">
<li role="listitem"
class="list-group-item text-overflow-ellipsis"
ng-include="'category-template.html'"
ng-repeat="category in c.data.categories track by category.value ">
</li>
</ul>

----------------------------------

Not sure why it did go away but looking at the code, title options is is not defined in widget.

Open the widget in it's code view and add a new option like below image and it should work.

You can also achieve same by adding below part in options schema field.

 

{"name":"title","section":"other","default_value":"Categories","label":"Title","type":"string"}

 

find_real_file.png

 

Please mark it correct if it fixes your issue or else mark it helpful, if it helped reaching your solution

bostonsnow
Kilo Guru

That did bring back the word Categories but it now has a gray background vs the previous blue (see below). Any idea why Categories would just disappear? What's interesting is if I go back to the OOTB widget, it's now missing from there too.

find_real_file.png

Hi @bostonsnow ,

 

Sorry my mistake. For got about fields in the widget.

 

1- Please scroll down to instance related list in your widget record 

2- Add color field in the related list(If it is not there)  using setting icon

3-  set color to same as oob widget (I believe it is primary blue color)

This should set up the correct color.

In case you want your current widget to behave as much near to your current widget

1- you can also remove the new Title option (You created) and update  Title(Categories) in instance related list.

 

Let me know if I am unable to explain.

 

find_real_file.png

Hi rajneeshbaranwal, 


I tried this, changed the Bootstrap color on the newest instance (there were 2) and there was no change. "Categories" is still in gray as it is in my screenshot above. Any other ideas? 

 

Thanks!

Mike