How to disable the Edit button on the KB view article page?

pyuen
Kilo Contributor

Hi folk,

I am currently redesigning the access for knowledge. When I go to the Homepage of the knowledge, click any article, the Edit button show up, how can i disable it ? as it seems to me it 's neither a UI action or Client script. The Flag Article button is fine though.

1 ACCEPTED SOLUTION

Yup. I just looked at the element ID of the button and did a quick search on UI macro and UI page tables.



If the question is answered, please close it by marking the response. Also note that this is OOB script and modifying it will incur you the maintenance cost as you will need to watch out for updates related to it during upgrades.


View solution in original post

7 REPLIES 7

ramilo
Kilo Contributor

Hi Pat,



Do you mind sharing the code with me, I would like to disable the edit button as well but I can't figure it out.


Thank you.


pyuen
Kilo Contributor

1) Go to the UI Macro   kb_view_common_header_toolbar


2) Look for the edit button


3) remove the line from that.



The button should be in line 98-inside showUpdateAction


sumeet_n
Kilo Guru

I believe your instance is on >Geneva version.


KB application/Knowledge Home page is part of Anuglar application which we do not have access to modify in any way (Client script / UI action). They will always be there.