Monday, March 8, 2010

Ribbon

Value
Description

CommandUI.Ribbon
Customization appears everywhere for the specified RegistrationId.

CommandUI.Ribbon.ListView
Customization appears when the list view Web Part is present.

CommandUI.Ribbon.EditForm
Customization appears on the edit form.

CommandUI.Ribbon.NewForm
Customization appears on the new form.

CommandUI.Ribbon.DisplayForm
Customization appears on the display form.

Hiding the Buttons in the ribbon

Hi All,

Recently I had some requirement of hiding some of the button in the menu of the ribbon. I tried searching for it and nothing very specific was found. However after lot of head scratching !!! I found something which was really useful. So thought of sharing the same with everyone.

My requirement was to hide New option (both item and folder) in the ribbon. Below is the snippet of the element.xml file which I used and it worked for me.

Id="RemoveNewButton"
Location="CommandUI.Ribbon"
RegistrationId="0x0101009148F5A04DDD49CBA7127AADA5FB792B" //contentype id of the list where we want to apply
RegistrationType="ContentType"
>


Location="Ribbon.Documents.New.NewDocument" />




Id="RemoveNewFolderButton"
Location="CommandUI.Ribbon"
RegistrationId="0x0101009148F5A04DDD49CBA7127AADA5FB792B"
RegistrationType="ContentType"
>


Location="Ribbon.Documents.New.NewFolder" />


Monday, January 18, 2010

SP2010: SPFarm.Local is null or Web Application could not be found

http://blogs.msdn.com/ekraus/archive/2009/11/13/sp2010-spfarm-local-is-null-or-web-application-could-not-be-found.aspx
Power Shell

http://sharepointdotnetwiki.iblogger.org/2009/12/powershell/