The Zurich release has arrived! Interested in new features and functionalities? Click here for more

knowledge base, how can I change the view of the articles for a custom one?

Mauricio Guzman
Tera Contributor

Hello, I am looking to change in the knowledge base, the article_view that it has by default when opening an article for a custom one

1 ACCEPTED SOLUTION

Mauricio Guzman
Tera Contributor

Hello community, this problem is not common according to what I investigated, for this reason here is the solution that I used, in case someone finds it useful

var link=item.link;
link=link.replace("Article_View_default", "id_new_article_view");
item.link=link;


I put this code in the client script, in the function where the 'Item' object is called, I replace the old id_view (kb_article_view) with the new id_view

View solution in original post

3 REPLIES 3

Musab Rasheed
Tera Sage
Tera Sage

Hi @Mauricio Guzman ,

You can use Page route option, check below. Don't forgot to mark my answer as correct if that helps.

https://docs.servicenow.com/en-US/bundle/sandiego-employee-service-management/page/product/human-resources/task/enable-page-route-hr.html

Regards

 

Please hit like and mark my response as correct if that helps
Regards,
Musab

Mauricio Guzman
Tera Contributor

Hello community, this problem is not common according to what I investigated, for this reason here is the solution that I used, in case someone finds it useful

var link=item.link;
link=link.replace("Article_View_default", "id_new_article_view");
item.link=link;


I put this code in the client script, in the function where the 'Item' object is called, I replace the old id_view (kb_article_view) with the new id_view

Hi @Mauricio Guzman  Could you please help me understand where is this client script? Is this a new client script you created or existing one?