SlideShare a Scribd company logo
Creating Custom Actionswithin SharePointGeoff Varosky
About MeGeoff Varosky MCP, MCTSSenior Solutions Developer for Grace-Hunt, LLC.Blog: http://www.geoffvarosky.comEmail: gvarosky@grace-hunt.comTwitter: @gvaro
About Grace-HuntFounded in 2004Based in Hudson, MAPresence in North East, Mid Atlantic, and South East RegionsMicrosoft Gold PartnerSpecializing in SharePoint and Dynamics (CRM, SL, GP, NAV) Consulting, Implementation, and IntegrationWeb: http://www.grace-hunt.comTwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
AgendaWhat are Custom Actions?DemonstrationsCreating a Simple Custom ActionAnatomy of a Custom ActionCreating a Slightly More Complex Custom ActionHiding Custom ActionsCustom Action GroupsReferencesQ&ATwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
ExamplesToolbarsTwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
ExamplesSite Actions MenuTwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
ExamplesSite SettingsTwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
ExamplesSite Settings (Custom Action Group)Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
ExamplesEdit Control Block (ECB)Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
ExamplesCentral Administration PagesTwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
Just What Are Custom Actions?Per Microsoft –“A custom action represents a link, toolbar button, menu item, or any control that can be added to a toolbar or menu that a user sees. Custom actions can be bound to list type, content type, file type, or programmatic identifier (ProgID).”Source: http://snipurl.com/d8y70Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
Just What Are Custom Actions?What does that mean?Bits of XMLDeployed via FeaturesCreate a Link within SharePointSpecific LocationJavaScript, AJAX, URLs, etc.Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
Just What Are Custom Actions?What does that mean?Custom Actions can be bound to List TypesA Custom Action can be bound to a Document Library, but, may not be bound to a Task ListExample: Check In/Check OutTwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
Just What Are Custom Actions?What does that mean?Custom Actions can be bound to File TypesExample: ‘Edit in Microsoft Word’ bound to Word (.doc, .docx) document typesTwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
Just What Are Custom Actions?What does that mean?Custom Actions can be bound to Content TypesExample: Folders, Document Content Types, List Content Types, etc.Programmatic IdentifiersExample: Task List Identifier (107)http://snipurl.com/ntd5gTwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
What Can Custom Actions Do?But wait, there’s more!Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
What Can Custom Actions Do?But wait, there’s more!Create links to pages that really should be there…Example: There is a link to the Site Collection Recycle Bin on the Site Settings page, however, there is no link to the current site Recycle Bin. (Demo #1)Custom Actions can pass along information to act uponExample:  Add a “Complete Task” action to an Edit Control Block, which calls an ASPX page, taking the parameters of the List ID and Item ID, and updating the task item within a list. (Demo #2)Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
What Can Custom Actions Do?…and moreCustom Actions can also be hiddenExample: You do not want site administrators to be able to delete their sites by using the Delete This Site link on the Site Settings page so, we can remove it by using  HideCustomAction (Demo #3)Create Groupings of Custom Actions by using CustomActionGroupExample: Create a grouping of your Custom Actions on the Site Settings page for all of your Custom Actions… (Demo #4)Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
What Tools Are Needed?NotepadWhat do I use?Visual StudioAndrew Connell’s SharePoint Project Utility for Visual Studiohttp://snipurl.com/d8yv9Requires DevExpress DX Core to be installed (free)WSPBuilder (CodePlex)http://snipurl.com/d8yxvSharePoint Solution Installer (CodePlex)http://snipurl.com/nt6uxTwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
DemoCreating a Simple Custom ActionView Demo: http://www.vimeo.com/9728285Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
Anatomy of a Custom ActionFeature Definition (feature.xml)Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
Anatomy of a Custom ActionScope Web
 A “sub-site”
 Only activates the feature on the specific web
 Site
 Site Collection
 Applies to all webs within the site collection
 Web Application
 Applies to all site collections and webs within a web application
 Farm
 Applies to all web applications, site collections, etc.....Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
Anatomy of a Custom ActionElement Manifest (manifest.xml)Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
Anatomy of a Custom Action<CustomActionContentTypeId = "Text" ControlAssembly = "Text" ControlClass = "Text" ControlSrc = "Text" Description = "Text" GroupId = "Text" Id = "Text" ImageUrl = "Text" Location = "Text" RegistrationId = "Text" RegistrationType = "Text" RequireSiteAdministrator = "TRUE" | "FALSE" Rights = "Text" Sequence = "Integer" ShowInLists = "TRUE" | "FALSE" ShowInReadOnlyContentTypes = "TRUE" | "FALSE" ShowInSealedContentTypes = "TRUE" | "FALSE" Title = "Text"> </CustomAction>Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
Anatomy of a Custom ActionId (optional)Specifies a unique identifier for custom action
May be a GUID or a unique term
Example:DeleteWebGroupID(optional)Identifies the unique group that this element is contained in
Example:SiteAdministrationTwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
Anatomy of a Custom ActionLocation (optional)Specifies the location for this custom action
Example:Microsoft.SharePoint.SiteSettingsRegistrationType(optional)Specifies the list, item content type, file type, or programmatic identifier that this action is associated with

More Related Content

PPTX
SharePoint Saturday EMEA - The Ribbon UI and Custom Actions in SharePoint 2010
PPTX
From SharePoint Designer to Visual Studio - Prototyping and Deploying Solutio...
PPTX
Planning and Configuring Extranets in SharePoint 2010
PPTX
Planning and Configuring Extranets in SharePoint 2010
PPTX
Planning and Configuring Extranets in SharePoint 2010
PPTX
What's New for Developers in SharePoint 2010
PPTX
SharePoint Saturday Hartford - 01/29/11 - Creating Custom Actions in SharePoi...
PPTX
SharePoint Saturday Boston 2/27/10 - Whats New For Developers In SharePoint 2010
SharePoint Saturday EMEA - The Ribbon UI and Custom Actions in SharePoint 2010
From SharePoint Designer to Visual Studio - Prototyping and Deploying Solutio...
Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010
What's New for Developers in SharePoint 2010
SharePoint Saturday Hartford - 01/29/11 - Creating Custom Actions in SharePoi...
SharePoint Saturday Boston 2/27/10 - Whats New For Developers In SharePoint 2010

What's hot (20)

PDF
The Ribbon UI and Custom Actions in SharePoint 2010
PPTX
SharePoint Saturday NYC 1/30/10 - Whats New For Developers In Share Point 2010
PPTX
SharePoint Saturday DC 12/5/09 - Introduction To Developing Custom Actions Wi...
PPTX
Creating Custom Actions in SharePoint 2010
PPTX
Planning and Configuring Extranets in SharePoint 2010
PPTX
Planning and Configuring Extranets in SharePoint 2010
PPTX
Introduction To Developing Custom Actions Within SharePoint
PPTX
Spsnh geoff varosky - jornata - planning and configuring extranets in share...
PDF
Planning and Configuring Extranets in SharePoint 2010
PDF
SharePoint Power User (Site Owner) Training
PDF
Introduction to SharePoint 2013 Out of the box Webparts
PDF
SharePoint Tips and Tricks you cannot live without
PPTX
SharePoint Online - What is an external user
PDF
SharePoint External Sharing
PPTX
How to (remote) control Office 365 with Azure (SharePoint Konferenz ppEDV Erd...
PPTX
SharePoint Permissions Worst Practices
PDF
Planning and Configuring Extranets in SharePoint 2010
PDF
SharePoint Out of the Box
PPT
Everything You Need To Know About SharePoint Social Capabilities - SPLive360
PPTX
Developing branding solutions for 2013
The Ribbon UI and Custom Actions in SharePoint 2010
SharePoint Saturday NYC 1/30/10 - Whats New For Developers In Share Point 2010
SharePoint Saturday DC 12/5/09 - Introduction To Developing Custom Actions Wi...
Creating Custom Actions in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010
Introduction To Developing Custom Actions Within SharePoint
Spsnh geoff varosky - jornata - planning and configuring extranets in share...
Planning and Configuring Extranets in SharePoint 2010
SharePoint Power User (Site Owner) Training
Introduction to SharePoint 2013 Out of the box Webparts
SharePoint Tips and Tricks you cannot live without
SharePoint Online - What is an external user
SharePoint External Sharing
How to (remote) control Office 365 with Azure (SharePoint Konferenz ppEDV Erd...
SharePoint Permissions Worst Practices
Planning and Configuring Extranets in SharePoint 2010
SharePoint Out of the Box
Everything You Need To Know About SharePoint Social Capabilities - SPLive360
Developing branding solutions for 2013
Ad

Similar to Creating Custom Actions within SharePoint (10)

PPTX
Global SharePoint Users Group 1/5/10 - Creating Custom Actions Within SharePoint
PPTX
SharePoint Saturday Baltimore 7/25/09 - Introduction To Developing Custom Act...
PPTX
Geoff Varosky: Creating Custom Actions in SharePoint 2010
PPTX
Creating Custom Actions in SharePoint 2010
PPTX
KWizCom SharePoint list custom actions feature product overview
PPTX
SharePoint Mobile Extensions - improving efficiency of mobile workforce
PPT
Schaeflein Dev409 Enterprise Branding Using Site Definitions
PPTX
Defining business process and workflows
PDF
SharePoint 2010 Customization Poster
PPTX
SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...
Global SharePoint Users Group 1/5/10 - Creating Custom Actions Within SharePoint
SharePoint Saturday Baltimore 7/25/09 - Introduction To Developing Custom Act...
Geoff Varosky: Creating Custom Actions in SharePoint 2010
Creating Custom Actions in SharePoint 2010
KWizCom SharePoint list custom actions feature product overview
SharePoint Mobile Extensions - improving efficiency of mobile workforce
Schaeflein Dev409 Enterprise Branding Using Site Definitions
Defining business process and workflows
SharePoint 2010 Customization Poster
SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...
Ad

More from Geoff Varosky (11)

PPTX
Using Azure Runbooks and Microsoft Flow to Automate SharePoint Tasks
PPTX
Automating Enterprise Application Deployments with PowerShell
PDF
Automating Your Enterprise Application Deployments with PowerShell
PPTX
Planning and Configuring Extranets in SharePoint 2010
PPTX
Planning and Configuring Extranets in SharePoint 2010
PPTX
The Ribbon UI and Custom Actions in SharePoint 2010
PPTX
Best Practices in SharePoint Development - Just Freakin Work! Overcoming Hurd...
PPTX
Who? What? Where? Searching in SharePoint
PPTX
Planning and Configuring Extranets in SharePoint 2010 @ SharePoint Saturday N...
PDF
Creating Custom Actions in SharePoint 2010
PDF
Just Freakin' Work - Overcoming Hurdles and Avoiding Pain
Using Azure Runbooks and Microsoft Flow to Automate SharePoint Tasks
Automating Enterprise Application Deployments with PowerShell
Automating Your Enterprise Application Deployments with PowerShell
Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010
The Ribbon UI and Custom Actions in SharePoint 2010
Best Practices in SharePoint Development - Just Freakin Work! Overcoming Hurd...
Who? What? Where? Searching in SharePoint
Planning and Configuring Extranets in SharePoint 2010 @ SharePoint Saturday N...
Creating Custom Actions in SharePoint 2010
Just Freakin' Work - Overcoming Hurdles and Avoiding Pain

Recently uploaded (20)

PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Electronic commerce courselecture one. Pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Encapsulation theory and applications.pdf
PPT
Teaching material agriculture food technology
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Empathic Computing: Creating Shared Understanding
PDF
Approach and Philosophy of On baking technology
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
cuic standard and advanced reporting.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
Big Data Technologies - Introduction.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Spectroscopy.pptx food analysis technology
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Electronic commerce courselecture one. Pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Encapsulation theory and applications.pdf
Teaching material agriculture food technology
A comparative analysis of optical character recognition models for extracting...
Empathic Computing: Creating Shared Understanding
Approach and Philosophy of On baking technology
Review of recent advances in non-invasive hemoglobin estimation
MIND Revenue Release Quarter 2 2025 Press Release
Encapsulation_ Review paper, used for researhc scholars
cuic standard and advanced reporting.pdf
Machine learning based COVID-19 study performance prediction
Unlocking AI with Model Context Protocol (MCP)
20250228 LYD VKU AI Blended-Learning.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Assigned Numbers - 2025 - Bluetooth® Document
Big Data Technologies - Introduction.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Spectroscopy.pptx food analysis technology

Creating Custom Actions within SharePoint

  • 1. Creating Custom Actionswithin SharePointGeoff Varosky
  • 2. About MeGeoff Varosky MCP, MCTSSenior Solutions Developer for Grace-Hunt, LLC.Blog: http://www.geoffvarosky.comEmail: gvarosky@grace-hunt.comTwitter: @gvaro
  • 3. About Grace-HuntFounded in 2004Based in Hudson, MAPresence in North East, Mid Atlantic, and South East RegionsMicrosoft Gold PartnerSpecializing in SharePoint and Dynamics (CRM, SL, GP, NAV) Consulting, Implementation, and IntegrationWeb: http://www.grace-hunt.comTwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 4. AgendaWhat are Custom Actions?DemonstrationsCreating a Simple Custom ActionAnatomy of a Custom ActionCreating a Slightly More Complex Custom ActionHiding Custom ActionsCustom Action GroupsReferencesQ&ATwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 5. ExamplesToolbarsTwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 6. ExamplesSite Actions MenuTwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 7. ExamplesSite SettingsTwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 8. ExamplesSite Settings (Custom Action Group)Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 9. ExamplesEdit Control Block (ECB)Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 10. ExamplesCentral Administration PagesTwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 11. Just What Are Custom Actions?Per Microsoft –“A custom action represents a link, toolbar button, menu item, or any control that can be added to a toolbar or menu that a user sees. Custom actions can be bound to list type, content type, file type, or programmatic identifier (ProgID).”Source: http://snipurl.com/d8y70Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 12. Just What Are Custom Actions?What does that mean?Bits of XMLDeployed via FeaturesCreate a Link within SharePointSpecific LocationJavaScript, AJAX, URLs, etc.Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 13. Just What Are Custom Actions?What does that mean?Custom Actions can be bound to List TypesA Custom Action can be bound to a Document Library, but, may not be bound to a Task ListExample: Check In/Check OutTwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 14. Just What Are Custom Actions?What does that mean?Custom Actions can be bound to File TypesExample: ‘Edit in Microsoft Word’ bound to Word (.doc, .docx) document typesTwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 15. Just What Are Custom Actions?What does that mean?Custom Actions can be bound to Content TypesExample: Folders, Document Content Types, List Content Types, etc.Programmatic IdentifiersExample: Task List Identifier (107)http://snipurl.com/ntd5gTwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 16. What Can Custom Actions Do?But wait, there’s more!Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 17. What Can Custom Actions Do?But wait, there’s more!Create links to pages that really should be there…Example: There is a link to the Site Collection Recycle Bin on the Site Settings page, however, there is no link to the current site Recycle Bin. (Demo #1)Custom Actions can pass along information to act uponExample: Add a “Complete Task” action to an Edit Control Block, which calls an ASPX page, taking the parameters of the List ID and Item ID, and updating the task item within a list. (Demo #2)Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 18. What Can Custom Actions Do?…and moreCustom Actions can also be hiddenExample: You do not want site administrators to be able to delete their sites by using the Delete This Site link on the Site Settings page so, we can remove it by using HideCustomAction (Demo #3)Create Groupings of Custom Actions by using CustomActionGroupExample: Create a grouping of your Custom Actions on the Site Settings page for all of your Custom Actions… (Demo #4)Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 19. What Tools Are Needed?NotepadWhat do I use?Visual StudioAndrew Connell’s SharePoint Project Utility for Visual Studiohttp://snipurl.com/d8yv9Requires DevExpress DX Core to be installed (free)WSPBuilder (CodePlex)http://snipurl.com/d8yxvSharePoint Solution Installer (CodePlex)http://snipurl.com/nt6uxTwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 20. DemoCreating a Simple Custom ActionView Demo: http://www.vimeo.com/9728285Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 21. Anatomy of a Custom ActionFeature Definition (feature.xml)Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 22. Anatomy of a Custom ActionScope Web
  • 24. Only activates the feature on the specific web
  • 27. Applies to all webs within the site collection
  • 29. Applies to all site collections and webs within a web application
  • 31. Applies to all web applications, site collections, etc.....Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 32. Anatomy of a Custom ActionElement Manifest (manifest.xml)Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 33. Anatomy of a Custom Action<CustomActionContentTypeId = "Text" ControlAssembly = "Text" ControlClass = "Text" ControlSrc = "Text" Description = "Text" GroupId = "Text" Id = "Text" ImageUrl = "Text" Location = "Text" RegistrationId = "Text" RegistrationType = "Text" RequireSiteAdministrator = "TRUE" | "FALSE" Rights = "Text" Sequence = "Integer" ShowInLists = "TRUE" | "FALSE" ShowInReadOnlyContentTypes = "TRUE" | "FALSE" ShowInSealedContentTypes = "TRUE" | "FALSE" Title = "Text"> </CustomAction>Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 34. Anatomy of a Custom ActionId (optional)Specifies a unique identifier for custom action
  • 35. May be a GUID or a unique term
  • 36. Example:DeleteWebGroupID(optional)Identifies the unique group that this element is contained in
  • 38. Anatomy of a Custom ActionLocation (optional)Specifies the location for this custom action
  • 39. Example:Microsoft.SharePoint.SiteSettingsRegistrationType(optional)Specifies the list, item content type, file type, or programmatic identifier that this action is associated with
  • 40. Example: ListTwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 41. Anatomy of a Custom ActionRegistrationId(optional)Specifies the registration attachment for a per-item action
  • 42. Example (List Identifier – Task List): 107 (http://snipurl.com/ntd5g)Title (required)Specifies the name of your action
  • 43. Example: DeleteWebDescription (optional)Longer description for action which is shown as a tooltip or sub-description (where applicable) for the actionTwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 44. Anatomy of a Custom ActionSequence (optional)The order in which your action will appear.
  • 45. If not specified, displayed in the order it is read by SharePoint by Feature and by order in element listing (XML).Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 46. Anatomy of a Custom ActionPermissionsRequireSiteAdministrator (optional)
  • 48. Cannot be used on ECB menu list items
  • 50. Specify rights needed for this Custom Action to be visible
  • 52. Possible Values http://snipurl.com/ntcz5Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 53. Anatomy of a Custom ActionUrlAction Tokens~site
  • 54. References the current SPWeb context
  • 56. References the current SPSite context
  • 58. GUID of the item action is called from
  • 60. URL of the item the action is called fromTwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 61. Anatomy of a Custom ActionUrlAction Tokens{ListId}
  • 64. References the URL of the SPWeb context the action is called from
  • 66. Unsupported in context menus (http://snipurl.com/ntcjc)
  • 68. This token is not available, but there is a way to get it via JavaScript, which we will see in Demo #2
  • 70. DemoCreating a Slightly More Complex Custom ActionView Demo: http://www.vimeo.com/9728320Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 71. DemoHiding Custom ActionsView Demo: http://www.vimeo.com/9728353Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 72. DemoCustom Action GroupsView Demo: http://www.vimeo.com/9759410Twitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 73. ResourcesMy Bloghttp://www.geoffvarosky.comClick on SharePoint Saturday category on left side of pageGraceHunt.SharePointCodePlex Projectshttp://codeplex.com/GraceHuntJohn Holliday’s Custom Action ResourcesHiding Custom Actions, and a Utility to get all custom action identifiers http://snipurl.com/d8zeaTwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 74. ResourcesMSDNCustom Action Definitions http://snipurl.com/d8zi7Default Custom Action Locations and IDs http://snipurl.com/d8zkaHow to: Add Custom Actions to the User Interfacehttp://snipurl.com/d8zq2CustomAction Element http://snipurl.com/d9jd4CustomActionGroup Element http://snipurl.com/d9jfxHideCustomAction Elementhttp://snipurl.com/d9jhsTwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 75. ResourcesCustom Actions in SharePoint 2010Adding Custom Button to the SharePoint 2010 Ribbonhttp://snipurl.com/tz3vq by Jonathon Frost @ MSDNAdding Custom Actions to the List Item Menu in SharePoint 2010 Using SharePoint Designer 2010 http://snipurl.com/tr0t3 by Geoff VaroskyHow to Add a Tab to the Ribbon in SharePoint Foundation http://snipurl.com/tz3wi by Andrew May @ SP Dev Doc TeamTwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 76. Q&ATwitter: @gvaroEmail: gvarosky@grace-hunt.comBlog: www.geoffvarosky.comCompany: www.grace-hunt.com
  • 77. About MeGeoff Varosky MCP, MCTSSenior Solutions Developer for Grace-Hunt, LLC.Company: http://www.grace-hunt.comBlog: http://www.geoffvarosky.comEmail: gvarosky@grace-hunt.comTwitter: @gvaro

Editor's Notes

  • #34: stsadm -o activatefeature -name SPS.HideCustomAction -url http://site.litwareinc.com