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.](https://reader035.fdocuments.net/reader035/viewer/2022062716/56649dc95503460f94abf4fd/html5/thumbnails/1.jpg)
Customizing the SharePoint 2010 Ribbon
Presented By: Ryan McIntyre
![Page 2: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.](https://reader035.fdocuments.net/reader035/viewer/2022062716/56649dc95503460f94abf4fd/html5/thumbnails/2.jpg)
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.](https://reader035.fdocuments.net/reader035/viewer/2022062716/56649dc95503460f94abf4fd/html5/thumbnails/3.jpg)
Topics
• Ribbon Introduction• Customization Options• Designer Solutions• Developer Solutions
![Page 4: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.](https://reader035.fdocuments.net/reader035/viewer/2022062716/56649dc95503460f94abf4fd/html5/thumbnails/4.jpg)
What is the Ribbon?
• Probably not new, but…• List / Library
• Dialog Window
![Page 5: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.](https://reader035.fdocuments.net/reader035/viewer/2022062716/56649dc95503460f94abf4fd/html5/thumbnails/5.jpg)
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.](https://reader035.fdocuments.net/reader035/viewer/2022062716/56649dc95503460f94abf4fd/html5/thumbnails/6.jpg)
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.](https://reader035.fdocuments.net/reader035/viewer/2022062716/56649dc95503460f94abf4fd/html5/thumbnails/7.jpg)
Designer Demo
![Page 8: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.](https://reader035.fdocuments.net/reader035/viewer/2022062716/56649dc95503460f94abf4fd/html5/thumbnails/8.jpg)
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.](https://reader035.fdocuments.net/reader035/viewer/2022062716/56649dc95503460f94abf4fd/html5/thumbnails/9.jpg)
Ribbon XML
• Element schema
![Page 10: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.](https://reader035.fdocuments.net/reader035/viewer/2022062716/56649dc95503460f94abf4fd/html5/thumbnails/10.jpg)
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.](https://reader035.fdocuments.net/reader035/viewer/2022062716/56649dc95503460f94abf4fd/html5/thumbnails/11.jpg)
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.](https://reader035.fdocuments.net/reader035/viewer/2022062716/56649dc95503460f94abf4fd/html5/thumbnails/12.jpg)
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.](https://reader035.fdocuments.net/reader035/viewer/2022062716/56649dc95503460f94abf4fd/html5/thumbnails/13.jpg)
Ribbon XML
• CommandUIHandlers – How controls respond to actions
• CommandAction– ECMAScript– URL– Custom URLActions
![Page 14: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.](https://reader035.fdocuments.net/reader035/viewer/2022062716/56649dc95503460f94abf4fd/html5/thumbnails/14.jpg)
Ribbon XML
• Custom Action– Supports web controls (e.g. text box, drop down)
![Page 15: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.](https://reader035.fdocuments.net/reader035/viewer/2022062716/56649dc95503460f94abf4fd/html5/thumbnails/15.jpg)
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.](https://reader035.fdocuments.net/reader035/viewer/2022062716/56649dc95503460f94abf4fd/html5/thumbnails/16.jpg)
Visual Studio Demo
![Page 17: Customizing the SharePoint 2010 Ribbon Presented By: Ryan McIntyre.](https://reader035.fdocuments.net/reader035/viewer/2022062716/56649dc95503460f94abf4fd/html5/thumbnails/17.jpg)
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/