Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.

18
Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre

Transcript of Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.

Page 1: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.

Customizing the SharePoint 2010 Ribbon

Presented By: Ryan McIntyre

Page 2: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.

Advertising• Me– Portals & Collaboration Regional Practice Director– MCITP, SharePoint 2010 Administrator– MCPD, SharePoint 2010 Developer

• Neudesic– Technology company focused on Innovation

utilizing the Microsoft platform– http://www.genuinefun.com

Page 3: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.

Topics

• Ribbon Introduction• Customization Options• Designer Solutions• Developer Solutions

Page 4: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.

What is the Ribbon?

• Probably not new, but…• List / Library

• Dialog Window

Page 5: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.

Business Case

• Provide custom action• Remove OOTB action• Create dialog buttons• Modify dialog buttons• Customize Site Actions menu

Page 6: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.

Roles & Tools

• SharePoint Administrator or Power User– SharePoint Designer 2010• No-code solution• Fire workflow• Limited to Lists & Libraries• Controlled options

Page 7: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.

Designer Demo

Page 8: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.

Roles & Tools

• SharePoint Developer– Visual Studio 2010• Complex solution packaged as wsp• Fire custom events• Lists / Libraries, Site Actions, OR custom dialogs• More control over customization and actions

Page 9: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.

Ribbon XML

• Element schema

Page 10: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.

Ribbon XML

• Location=“Ribbon.Tabs._children”• Sequence – where in relation to other tabs– Default tabs use multiples of 100

• Scaling

Page 11: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.

Ribbon XML• Group(s) – Groups that are on the custom tab,

defining Controls (e.g. buttons) which have commands– Controls specify Sequence value, default x10

Page 12: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.

Ribbon XML

• GroupTemplate – Defines layout, Title value used for Size on MaxSize and Scale

• Max 3 Row entries• DisplayMode– Small, Medium,

Large, Text

Page 13: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.

Ribbon XML

• CommandUIHandlers – How controls respond to actions

• CommandAction– ECMAScript– URL– Custom URLActions

Page 14: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.

Ribbon XML

• Custom Action– Supports web controls (e.g. text box, drop down)

Page 15: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.

Ribbon XML (Last One!!)

• Remove Buttons– Get the location, you can remove it– HideCustomAction

Page 16: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.

Visual Studio Demo

Page 17: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.

Resources

• SharePoint 2010 SDK: http://msdn.microsoft.com/en-us/library/ee557253.aspx

• http://channel9.msdn.com• Developer Center: http://

msdn.microsoft.com/en-us/sharepoint/default.aspx• http://randomdust.com/blogs/ryan/

Page 18: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.

Thank You!

• Ryan McIntyre– [email protected]– @ryanmcintyre– 303-520-6337