cancel
Showing results for 
Search instead for 
Did you mean: 

How-To to hide 'new folder' button in the repository toolbar

rramirezg
Champ in-the-making
Champ in-the-making
How-To to hide "new folder" button in the repository toolbar for non admins

1) Edit "..\tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\documentlibrary\include\toolbar.lib.ftl" file.

2) Replace "<div class="new-folder">" with "<div class="new-folder" <#if !user.isAdmin>style="display: none"</#if>>"

3) Restart Tomcat

You can apply this solution to other buttons in the toolbar like "Upload" or "Create content".

Hope it helps…
1 REPLY 1

hunjet
Champ in-the-making
Champ in-the-making
Hi rramirezg,

You should not change original alfresco files.
Instead, use the override method - copy template file to extension folder and modify it there.
Check https://forums.alfresco.com/en/viewtopic.php?f=5&t=43249.

Regards,
Blaž