Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.
Transcript of Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.
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
Topics
• Ribbon Introduction• Customization Options• Designer Solutions• Developer Solutions
What is the Ribbon?
• Probably not new, but…• List / Library
• Dialog Window
Business Case
• Provide custom action• Remove OOTB action• Create dialog buttons• Modify dialog buttons• Customize Site Actions menu
Roles & Tools
• SharePoint Administrator or Power User– SharePoint Designer 2010• No-code solution• Fire workflow• Limited to Lists & Libraries• Controlled options
Designer Demo
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
Ribbon XML
• Element schema
Ribbon XML
• Location=“Ribbon.Tabs._children”• Sequence – where in relation to other tabs– Default tabs use multiples of 100
• Scaling
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
Ribbon XML
• GroupTemplate – Defines layout, Title value used for Size on MaxSize and Scale
• Max 3 Row entries• DisplayMode– Small, Medium,
Large, Text
Ribbon XML
• CommandUIHandlers – How controls respond to actions
• CommandAction– ECMAScript– URL– Custom URLActions
Ribbon XML
• Custom Action– Supports web controls (e.g. text box, drop down)
Ribbon XML (Last One!!)
• Remove Buttons– Get the location, you can remove it– HideCustomAction
Visual Studio Demo
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/