4/30/2011

Replacing Existing Ribbon Controls in SharePoint 2010

Replacing Existing Ribbon Controls in SharePoint 2010





This is my personal format to replace a folder in Ribbon in SharePoint 2010 :

Code :
<?xml version="1.0" encoding="utf-8"?>

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">

<CustomAction
Id="Ribbon.Documents.New.NewFolder.ReplaceButton"
Location="CommandUI.Ribbon"
RegistrationId="101"
RegistrationType="List"
Title="Replace Ribbon Button">

<CommandUIExtension>

<CommandUIDefinitions>

<CommandUIDefinition
Location="Ribbon.Documents.New.NewFolder">

<Button Id="Ribbon.Documents.New.NewFolder.ReplacementButton"
Command ="MyNewButtonCommand"
Image16by16="/_layouts/$Resources:core,Language;/images/formatmap16x16.png?vk=4536" 
Image16by16Top="-240" Image16by16Left="-80"
Image32by32="/_layouts/$Resources:core,Language;/images/formatmap32x32.png?vk=4536" 
Image32by32Top="-352" Image32by32Left="-448"
ToolTipTitle="Create a New Folder"
ToolTipDescription="Replaced by XML Custom Action"
LabelText="My New Folder"
TemplateAlias="o1" />

</CommandUIDefinition>

</CommandUIDefinitions>

<CommandUIHandlers>

<CommandUIHandler
Command="MyNewButtonCommand"
CommandAction="javascript:alert('New Folder Replaced.');" />

</CommandUIHandlers>

</CommandUIExtension>

</CustomAction>

</Elements>




Add Custom Ribbon Button in SharePoint 2010

Add Custom Ribbon Button in SharePoint 2010
This is my personal format to add a Custom Ribbon Button in SharePoint 2010 :

Code :
<?xml version="1.0" encoding="utf-8"?>

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">

<CustomAction
Id="CustomRibbonTab"
Location="CommandUI.Ribbon.ListView"
RegistrationId="101"
RegistrationType="List"
Sequence="5">

<CommandUIExtension>

<CommandUIDefinitions>

<CommandUIDefinition Location="Ribbon.Documents.New.Controls._children">

<Button
Id="Ribbon.Documents.New.RibbonTest"
Alt="Test Button"
Sequence="5"
Command="Test_Button"
LabelText="Click Me!"
Image32by32="/_layouts/images/ribbon_blog_32.png"
Image16by16="/_layouts/images/ribbon_blog_16.png"
TemplateAlias="o1" />

</CommandUIDefinition>

</CommandUIDefinitions>

<CommandUIHandlers>

<CommandUIHandler
Command="Test_Button"
CommandAction="javascript:alert('Why Did You Clicked Me?');" />

</CommandUIHandlers>

</CommandUIExtension>

</CustomAction>

</Elements>

4/24/2011

SharePoint 2010 Resources

SharePoint 2010 Resources
Hi Guys,

Now a days I'm exploring SharePoint 2010 :)

Here are the few resources links which might be useful for you:

Client Object Model:
http://go.microsoft.com/?linkid=9732977

Customizing MySites:
http://go.microsoft.com/?linkid=9732969

Designing Lists and Schemas:
http://go.microsoft.com/?linkid=9732724

Developing a BCS External Content Type with Visual Studio 2010:
http://go.microsoft.com/?linkid=9729898

Developing a Sandboxed Solution with Web Parts:
http://go.microsoft.com/?linkid=9732968

Developing a Visual Web Part in Visual Studio 2010:
http://go.microsoft.com/?linkid=9729899

Developing Business Intelligence Applications:
http://go.microsoft.com/?linkid=9733842

Enterprise Content Management:
http://go.microsoft.com/?linkid=9733703

Getting Started with SharePoint 2010:
http://go.microsoft.com/?linkid=9732722

LINQ to SharePoint 2010:
http://go.microsoft.com/?linkid=9732725

SharePoint 2010 User Interface Advancements:
http://go.microsoft.com/?linkid=9732726

Visual Studio SharePoint Tools:
http://go.microsoft.com/?linkid=9732723

Workflow:
http://go.microsoft.com/?linkid=9733641

Backup and Restore in SharePoint Server 2010:
http://go.microsoft.com/?linkid=9730155

Business Connectivity Services:
http://go.microsoft.com/?linkid=9733640

Business Continuity Management in SharePoint Server 2010:
http://go.microsoft.com/?linkid=9730288

Configuring Remote Blob Storage FILESTREAM Provider for SharePoint Server 2010:
http://go.microsoft.com/?linkid=9731011

Configuring Tenant Administration on SharePoint Server 2010:
http://go.microsoft.com/?linkid=9730290

Configuring User Profile Synchronization in SharePoint Server 2010:
http://go.microsoft.com/?linkid=9730292

Enterprise Search:
http://go.microsoft.com/?linkid=9733635

Introduction to Microsoft SharePoint Server 2010 Upgrade:
http://go.microsoft.com/?linkid=9730532

Monitoring SharePoint 2010:
http://go.microsoft.com/?linkid=9737842

New IT Pro Features in SharePoint Server 2010:
http://go.microsoft.com/?linkid=9730282

Performance Management:
http://go.microsoft.com/?linkid=9732727

Windows PowerShell and SharePoint 2010:
http://go.microsoft.com/?linkid=9732970

SharePoint Designer for IT Pros:
http://go.microsoft.com/?linkid=9732978

SharePoint RTM - IT PRO - Business Continuity Management:
http://go.microsoft.com/?linkid=9732612

SharePoint RTM - IT PRO - Installing and Configuring:
http://go.microsoft.com/?linkid=9732618

SharePoint RTM - IT PRO - Service Applications:
http://go.microsoft.com/?linkid=9732614

SharePoint RTM - IT PRO - Upgrade:
http://go.microsoft.com/?linkid=9732616

Thanks and Have fun!!!!!