How to modify the Article body?

SN_Learn
Kilo Patron
Kilo Patron

Screenshot 2023-02-13 135909.pngHi All,

 

When I open a knowledge article and click on 'View Article' UI Action,  it displays the details of that article in the platform including the KB number, Subject, body etc.

 

I want to modify the details which are present over here, let us suppose I want to exclude the Subject line or KB number. How could I achieve that? Could you please guide me? Thank you

 

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.
1 ACCEPTED SOLUTION

Hi, after investigating more on the SN platform, I found the UI macro where it is stored and could be edited if required according to the requirement. Mentioning the macros in case anyone encounters the same requirement in the future.

1. kb_view_common_body - It stores all the UI macro which holds the other sections of the article page.

2. kb_article_header - This UI macro stores the outputs of an article's header info: number, publication date, and modification date.

3. kb_view_common_header_banner_image

4. kb_view_common_header_toolbar

5. kb_view_common_content

6. kb_view_common_footer

 

Hope this helps. Thanks.

View solution in original post

5 REPLIES 5

SatyakiBose
Mega Sage

Hello @SN_Learn 

If i consider the screenshot below, are you referring to exclude/hide these fields?

satyakibose_0-1675850613689.png

You can use any of the methods to hide these fields based on roles:

  1. Setup a client script with a glideajax call to validate the roles or group of the current user.
  2. Setup a UI policy with a glideajax call to validate the roles or group of the current user.
  3. Setup a read ACL on the field, so restrict visibility on the fields.

Hi @SatyakiBose , Thanks for the reply.

 

In that article when you will scroll down you will find one related link 'view article', you need to click on that and it will show the article's short description as Title, author body and all other details along with KB number.

 

I want to modify that view or details when View Article is clicked.

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.

Hi @SatyakiBose but is it recommended to hide OOB fields on a KB form ?

SN_Learn
Kilo Patron
Kilo Patron

Hi All, When I open any one article in the SN Platform and click on 'View Article' under the related links, it will show the short description as the heading of the article and other details of it along with the KB number, number of views, etc.

 

Could you please guide where and how could I modify this view? For example, I want to exclude the short descript from this view and just want to show the article's body.

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.