Hide create Button and upload button in alfresco Doclib -


i want show create , upload button inside document library only, , in document library if create sub folder. inside sub folder don't want allow user create folder or upload document.

is possible in alfresco 5.0.d

please refer below image. in image want hide create , upload option. want show both option specific folder (i.e document library)

can me this?

thanks in advance.enter image description here

it's worth remembering if hide "create content" , "upload" buttons won't prevent users creating content dragging , dropping files document library trigger upload - nor stop creation of content via other mechanisms such mobile client or other apis webdav (if organisation happens using them).

the effective method prevent upload , content creation ensure folders created @ root of document library not allow children created within them.

if "createchildren" permission on folders false upload , create actions automatically disabled without having - , prevent drag-and-drop file upload being possible.

i suggest @ best approach take. again, there various ways in can achieved - setting folder rules 1 approach (to change permission on folders created), overriding rest apis option.

however, if you're looking less ideal short cut hiding buttons you're going need extend toolbar.js code used in document library.

this blog post provides information on how can extend existing javascript widgets. webscript you're going want extend in case "documentlist-v2.get.js" (as of 5.0 creates both toolbar , documentlist widgets). "onfilterchanged" function you'll want extend can hide buttons when new path other root folder.


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -