All about the SharePoint ribbon
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

All about the SharePoint ribbon

  • 4,512 views
Uploaded on

Developers guide for customizing the SharePoint 2010 server ribbon. ...

Developers guide for customizing the SharePoint 2010 server ribbon.

Code sample is embeded in the power point, so download to get it!

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
4,512
On Slideshare
3,909
From Embeds
603
Number of Embeds
28

Actions

Shares
Downloads
112
Comments
0
Likes
1

Embeds 603

http://kwizcom.blogspot.com 380
http://kwizcom.blogspot.ca 84
http://kwizcom.blogspot.in 59
http://kwizcom.blogspot.co.uk 13
http://kwizcom.blogspot.de 11
http://kwizcom.blogspot.com.au 8
http://kwizcom.blogspot.com.br 6
http://kwizcom.blogspot.co.il 5
http://kwizcom.blogspot.fr 5
http://kwizcom.blogspot.cz 4
http://kwizcom.blogspot.ru 3
http://kwizcom.blogspot.nl 3
http://kwizcom.blogspot.jp 3
http://kwizcom.blogspot.sg 2
http://kwizcom.blogspot.se 2
http://kwizcom.blogspot.com.es 2
http://kwizcom.blogspot.it 2
http://131.253.14.250 1
http://kwizcom.blogspot.ch 1
http://feeds.feedburner.com 1
http://kwizcom.blogspot.be 1
http://kwizcom.blogspot.kr 1
http://kwizcom.blogspot.no 1
http://kwizcom.blogspot.dk 1
http://kwizcom.blogspot.ro 1
http://kwizcom.blogspot.hk 1
http://kwizcom.blogspot.pt 1
http://translate.googleusercontent.com 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. All about the SharePoint Ribbon
    Shai Petel
    MCT, VP R&D
    shai@kwizcom.com
  • 2. Warning!
    There will be extensive visual studio use throughout this presentation!
  • 3. Topics
    Introducing the Ribbon
    SPRibbon Architecture
    Customizing the SPRibbon
  • 4. Introducing the Ribbon
    Office ribbon: File menu and quick access toolbar:
    SharePoint ribbon: Site Actions menu, Navigate Up and Edit page quick access buttons
  • 5. Introducing the RibbonCommon tabs
    The “Browse” tab
    The “Page” tab
  • 6. Introducing the RibbonCommon tabs
    The “Items” tab
    The “List” tab
  • 7. Introducing the RibbonCommon tabs
    “On demand” functionality with contextual tabs
  • 8. Introducing the RibbonCommon tabs
    Context-sensitive operations with controls status
  • 9. Topics
    Introducing the Ribbon
    SPRibbon Architecture
    Customizing the SPRibbon
  • 10. SPRibbonArchitectureObjects Hierarchy
  • 11. SPRibbonArchitectureObjects Hierarchy
  • 12. SPRibbon ArchitectureObjects Hierarchy
    Objects are defined in XML or in JSON.
    Example:TEMPLATEGLOBALXMLCMDUI.XML
    (Humans prefer XML…)
  • 13. SPRibbonArchitectureRibbon Communication
  • 14. Topics
    Introducing the Ribbon
    SPRibbon Architecture
    Customizing the SPRibbon
  • 15. Customizing the SPRibbonGeneral info
    Declaring controls
    Handling commands
    Associating your ribbon tabs
  • 16. Customizing the SPRibbonGeneral info
    Declaring controls
    Declare Ribbon controls in feature XML
    Injext XML to SPRibbon using ribbon.RegisterDataExtension
    Handling commands
    Associating your ribbon tabs
  • 17. Customizing the SPRibbonGeneral info
    Declaring controls
    Handling commands
    Declare command handlers inline in the XML
    Register a PageComponent to handle more complex commands (such as lazy load)
    Associating your ribbon tabs
  • 18. Customizing the SPRibbonGeneral info
    Declaring controls
    Handling commands
    Associating your ribbon tabs
    Associate with a list template or content type
    Use code to bring un-associated tabs to view
    Associate web part with contextual group tabs
  • 19. Customizing the SPRibbon
    Code + demo
    (See demo script in README.txt inside VS project)
  • 20. Nice to know…
    Use JS objects to avoid conflicts
    The ribbon shows informative formatting errors 9 times out of 10
  • 21. Nice to know…
    Some controls cannot be large / medium / small. Checkbox cannot be large.
    If you inject to existing node (_children) you can only inject one child at a time. Create CommandUIDefinition for each injection.
    Documentation error: group template and template alias are not optional!
  • 22. Nice to know…
    SPRibbon in not accessible from sandboxed code!
    Dispatch command manually: SP.Ribbon.PageManager.get_instance().get_commandDispatcher().executeCommand(Commands.CommandIds.ApplicationStateChanged, null);
  • 23. Topics
    Introducing the Ribbon
    SPRibbon Architecture
    Customizing the SPRibbon
  • 24. See also
    Server Ribbon visual studio extensibility project: http://code.msdn.microsoft.com/vsixforsp
    PageComponent more info:http://msdn.microsoft.com/en-us/library/bb383792.aspx
    Shai's Blog:http://kwizcom.blogspot.com
    Chris O'Brien ribbon blog (Beta!) can be found here: http://www.sharepointnutsandbolts.com/2010/01/customizing- ribbon-part-1-creating-tabs.html
    MSDN How-To Webpart with contextual ribbon: http://msdn.microsoft.com/en-us/library/ff407578.aspx
  • 25. Questions?
    =2B |! 2B ? FullTrust:Sandbox;