How to add a short description on the knowledge base card.

siddhi sawant
Tera Contributor

Hi All, I want to add short description on the knowledge base card.

siddhisawant_1-1720527478904.png

I've already added it in the description, but it's not showing up on the csm portal.

siddhisawant_0-1720527302550.png

 

1 REPLY 1

Dnyaneshwaree
Mega Sage

Hello @siddhi sawant ,

If you not tried or verified below things before then please refer and check it might help you:

1. Ensure that the field you want to display (e.g., short_description) is populated for the knowledge articles.

2. You'll need to customize the widget (kb_article_card) used to display the knowledge base cards in the CSM portal. Open the widget record and switch to the HTML Template or Server Script tab. Modify the widget template to include the short description. Insert the following code snippet where you want the short description to appear.

html

 

<div class="short-description">
  {{::data.short_description}}
</div>

 

client controller:

 

$scope.data.short_description = $sp.getParameter('short_description');

 

Server Script:

 

data.short_description = kbArticle.short_description;

 

 

Please accept my solution if it works for you and thumps up to mark it as helpful.
Thank you!!

Dnyaneshwaree Satpute
Tera Guru