Preaching SharePoint

Hide the Multiple Upload option for a particular document library SharePoint 2010



To hide Multiple Upload button we have two options
1. Using Soltuion\Feature
2. Using CSS

We will discuss both the options in this post.

Option 1 -  So here is how you create a solution to hide Multiple Upload button from ribbon. If you need this feature active for only one library you can create a new list template for you document library and specify the id of list template in RegistrationId. Then Create your Library from thi new list template. Multiple Upload button will be missing from your new Library only.

Firstly Id of the Button is - "Ribbon.Documents.New.AddDocument.Menu.Upload.UploadMultiple".

Now lets look at the Steps -

1. Create a empty soltuion in VS 2010.
2. Add a new Item Module and then delete the text file created in that Module.
3. Edit the elements file to add below

<CustomAction
    Id="RemoveMultipleUploadButton"
    Location="CommandUI.Ribbon"
    RegistrationType="List"
    RegistrationId="{listTemplateId}">
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition
          Location="Ribbon.Documents.New.AddDocument.Menu.Upload.UploadMultiple" /> 
      </CommandUIDefinitions>
    </CommandUIExtension>
  </CustomAction>

4. Next make sure your fetaure conatins this elements file.
5. Build and delploy to test.


Option 2 - Add the below CSS in a Content editor webpart on the page where you want to hide Upload Multiple button.

<style type="text/css"> 
#Ribbon\.Documents\.New\.AddDocument-Large
{     
 display:none !important; 
} 
</style>
<style type="text/css"> 
td.ms-addnew
{     
 display:none !important; 
} 
</style>



Responses

3 Respones to "Hide the Multiple Upload option for a particular document library SharePoint 2010"

Ruud Stijger said...

Thanks. CSS did the trick for me.


17 February 2015 at 06:25
lee woo said...

With integrity, you have nothing to fear, since you have nothing to hide. With integrity, you will do the right thing, so you will have no guilt. See the link below for more info.


#hide
www.ufgop.org


29 April 2015 at 01:48
Silvia Jacinto said...

Life is full of many challenges. Challenges that will make you or break you depending on how you handle it. Visit my site for more updates. God Bless to your site.

n8fan.net

www.n8fan.net


17 May 2016 at 17:59

Post a Comment

 

Do you want SharePoint 2013 to inherit Metro Style design?

Search This Blog

Return to top of page Copyright © 2010 | Platinum Theme Converted into Blogger Template by HackTutors