Skip to main content
Solved

Adding category descriptions to knowledge base

  • January 24, 2024
  • 2 replies
  • 102 views

Patrick.C
Apprentice
Forum|alt.badge.img

Hi all,

I am trying to modify our knowledge base view to show the category descriptions, but I cannot find instructions on how to include this. Is there custom code available to include the category description for each category when users are viewing all of our solution categories?

Best answer by Patrick.C

Update: I was able to solve this query myself by adding this line of code:

<p>{{category.description}}</p>

 

I added it to the portal pages for ‘solutions home’ and ‘solutions category home’, immediately below this existing line of code:

<h2 class="heading">{{ category.name | h}}</h2>

2 replies

Patrick.C
Apprentice
Forum|alt.badge.img
  • Author
  • Apprentice
  • Answer
  • January 25, 2024

Update: I was able to solve this query myself by adding this line of code:

<p>{{category.description}}</p>

 

I added it to the portal pages for ‘solutions home’ and ‘solutions category home’, immediately below this existing line of code:

<h2 class="heading">{{ category.name | h}}</h2>


hemanth.ramya
Community Manager
Forum|alt.badge.img+9
  • Community Manager
  • January 29, 2024

Appreciate you sharing the solution here, @Patrick.C 

Feel free to add a note for any further queries and we would be happy to help. :)

 

Cheers,