cancel
Showing results for 
Search instead for 
Did you mean: 

Disable buttons

dnguyen
Champ in-the-making
Champ in-the-making
Hello,

Can someone shows me how to disable the "Add Content" and "Create" button ?  I have a folder called "Final Approval" and I don't want the user to Add or Create contents in that folder.  They still can do check-in/Check-out of the file in the Final Approval folder but they can't create any contents.  I am not sure how to modify permissionDefinition.xml file to do that.

Thank you
3 REPLIES 3

mabayona
Champ on-the-rise
Champ on-the-rise
Easy. Add the following to your web-client-config-custom.xml:

            <action-group id="add_content_menu">             <style>white-space:nowrap</style>             <action idref="add_adm_content" hide="true" />         </action-group>              <!– Actions Menu for Create in Browse screen –>         <action-group id="browse_create_menu">            <action idref="create_content"  hide="true" />            <action idref="create_space"  hide="true"  />            <action idref="create_space_wizard"  hide="true" />         </action-group>‍‍‍‍‍‍‍‍‍‍‍‍

dnguyen
Champ in-the-making
Champ in-the-making
Thanks for replied to my question.  I did add the codes to the xml file as you suggested and restarted Alfresco but when I login to a user account I still can do "Add Content".

Thanks

mabayona
Champ on-the-rise
Champ on-the-rise
Using the provided configuration, the "Add Content" button dissapears from the web client and "Create" button is shown, but when selected does not show any menu option. Is not exactly what you want, but almost. Hope it helps.