Disable Upload button in Document Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2010 08:02 AM
I want to disable the Upload button and enable it when a user is in the third folder.
e.g if Folder = folder1;
button.upload.disable.
else if Folder = folder1/folder2/folder3;
button.upload.enable.
it is like the one in RM, where you can only file in a folder.
Thanks in advance
- Labels:
-
Archive

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2010 06:20 PM
Thanks,
Claudio
If this post was helpful, please click Yes on the Post Rating
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2010 07:17 AM
The only problem I had after that was the folder because I didn't want them to be able to create folder on the 3rd level. So when I disable the folder button it was automatically disabling the file button, which I thought it had something to do with the permissions. So I used a diplay:none style if it is not admin, and it worked.
<#if !user.isAdmin>
<div class="hideable toolbar-hidden DocListTree" style="display: none;">
<div class="new-folder"><button id="${args.htmlid}-newFolder-button" name="newFolder">${msg("button.new-folder")}</button></div>
<div class="separator"> </div>
</div>
</#if>
Please let me know if there is a way to can only disable the New Folder Button and the Upload button still remain enabled.
Thanks a million times.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2010 12:32 PM
<#if role = "SiteManager"> <div class="hideable toolbar-hidden DocListTree"> <div class="new-folder"><button id="${args.htmlid}-newFolder-button" name="newFolder">${msg("button.new-folder")}</button></div> <div class="separator"> </div> </div></#if> <div class="hideable toolbar-hidden DocListTree"> <div class="file-upload"><button id="${args.htmlid}-fileUpload-button" name="fileUpload">${msg("button.upload")}</button></div> <div class="separator"> </div> </div>
There the button wil appear only to "SiteManager" (or any role you like), and the fileupload remain untouch.Regards,
Claudio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2010 11:48 AM
<#if !user.isAdmin> statement to work but I can not get the
<#if role = "SiteManager"> tag to work
I am trying to hide the create folder button for any user that isn't a site manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2011 10:17 PM
e.g role = "SiteManager"
Does anyone have solution for this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2011 06:48 AM
I also have the same requirement, only that, I need to Disable the "Create Site" link, and enable it to certain ROLES not user/groups.That would make no sense - the SiteManager role applies to a specific site, but you're trying to control a UI action outside of any site.
e.g role = "SiteManager"
Does anyone have solution for this?
Thanks,
Mike

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2011 10:34 PM
-ken
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2012 12:38 PM
I tried the first example, but the button is hidden for all users who are not admin and admin can't see the button neither. It also disables the upload button for admin. Is there any way to control the visibility of the buttons depending on the folder where you're located and the group to which you belong?. Still, it seems an unreliable way to prevent someone perform an action. Is not there some way to prevent a user, or user group, create a folder on a space, but files? Using permissions, for example.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2014 09:30 AM
Regards,
Claudio
