SlideShare ist ein Scribd-Unternehmen logo
1 von 28
Creating Custom Actions in SharePoint 2010 Geoff Varosky
About Me Geoff Varosky Grace Hunt SharePoint Solutions Group Director, Development & Evangelism Blogger, Author, Speaker BASPUG Co-Founder SPS Boston Co-Organizer Blog : www.sharepointyankee.com Email: gvarosky@gracehunt.com Twitter: @gvaro LinkedIn & Facebook geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
About Grace Hunt Microsoft Gold Partner Founded 2004 Practice Areas Microsoft SharePoint Technologies Business Process and Planning Portals & Collaboration Information Worker Solutions Dynamics CRM, SL, GP, NAV Microsoft Cloud Technologies geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
Agenda What are Custom Actions? Demonstrations Using SharePoint Designer Importing into Visual Studio Finding Custom Actions Building & Deployment in Visual Studio References Q&A geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
What are Custom Actions? Site Actions Menu geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
What are Custom Actions? Ribbon UI Ribbon Tabs geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
What are Custom Actions? Site Settings Menu geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
What are Custom Actions? Edit Control Block (ECB) / List Item Menu geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
What are Custom Actions? Custom Action Group geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
What are Custom Actions? Tabs geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
What are Custom Actions? Tabs Organize a set of groups Contain one or more controls geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
What are Custom Actions? Controls Button Checkbox Color Picker Combo Box Drop Down Flyout Anchor Insert Table Label Menu Menu Section MRU Split Button Most Recently Used Spinner Split Button Text Box Toggle Button geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
What are Custom Actions? Bits of XML <CustomAction 	Id=“MyCustomAction” Location=“Microsoft.SharePoint.SiteSettings 	… /> Links <CustomAction…> 	<UrlActionUrl=“http://www.foo.com” /> </CustomAction> JavaScript (optional) <CustomAction …> 	<UrlActionUrl=“javascript:DoSomething();” /> </CustomAction> Code Behind (optional) <CustomAction 	… ControlAssembly=“MyCode, Version=1.0.0.0, Culture=neutral, PublicKeyToken=63316a326e123aec"ControlClass=“MyCode.Class“ /> geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
(CustomAction) Anatomy 101 <CustomAction ContentTypeId = "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">  <URLAction URL=“” /> <CommandUI></CommandUI> </CustomAction> geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
(CustomAction) Anatomy 101 <CustomAction ContentTypeId = "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">  <URLAction URL=“” /> <CommandUI></CommandUI> </CustomAction> geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
(CustomAction) Anatomy 101 Id (optional) Specifies a unique identifier for custom action May be a GUID or a unique term Example: DeleteWeb GroupID(optional) Identifies the unique group that this element is contained in Example: SiteTasks geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
(CustomAction) Anatomy 101 Location (optional) ,[object Object]
Example: Microsoft.SharePoint.SiteSettingsRegistrationType(optional) ,[object Object]
Example: Listgeoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
(CustomAction) Anatomy 101 RegistrationId(optional) ,[object Object]
Example (List Identifier – Task List): 107{$ListId:Lists/Tasks;} (http://snipurl.com/ntd5g) Title (required) ,[object Object]
Example: DeleteWebgeoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
(CustomAction) Anatomy 101 Description(optional) ,[object Object]
Sequence (optional)
The order in which your action will appear.
If not specified, displayed in the order it is read by SharePoint by Feature and by order in element listing (XML).geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
(CustomAction) Anatomy 101 UrlAction Tokens ,[object Object]
References the current SPWeb context

Weitere ähnliche Inhalte

Mehr von Geoff Varosky

Automating Enterprise Application Deployments with PowerShell
Automating Enterprise Application Deployments with PowerShellAutomating Enterprise Application Deployments with PowerShell
Automating Enterprise Application Deployments with PowerShellGeoff Varosky
 
Automating Your Enterprise Application Deployments with PowerShell
Automating Your Enterprise Application Deployments with PowerShellAutomating Your Enterprise Application Deployments with PowerShell
Automating Your Enterprise Application Deployments with PowerShellGeoff Varosky
 
The Ribbon UI and Custom Actions in SharePoint 2010
The Ribbon UI and Custom Actions in SharePoint 2010The Ribbon UI and Custom Actions in SharePoint 2010
The Ribbon UI and Custom Actions in SharePoint 2010Geoff Varosky
 
Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Geoff Varosky
 
Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Geoff Varosky
 
Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Geoff Varosky
 
Creating Custom Actions in SharePoint 2010
Creating Custom Actions in SharePoint 2010Creating Custom Actions in SharePoint 2010
Creating Custom Actions in SharePoint 2010Geoff Varosky
 
Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Geoff Varosky
 
Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Geoff Varosky
 
The Ribbon UI and Custom Actions in SharePoint 2010
The Ribbon UI and Custom Actions in SharePoint 2010The Ribbon UI and Custom Actions in SharePoint 2010
The Ribbon UI and Custom Actions in SharePoint 2010Geoff Varosky
 
Best Practices in SharePoint Development - Just Freakin Work! Overcoming Hurd...
Best Practices in SharePoint Development - Just Freakin Work! Overcoming Hurd...Best Practices in SharePoint Development - Just Freakin Work! Overcoming Hurd...
Best Practices in SharePoint Development - Just Freakin Work! Overcoming Hurd...Geoff Varosky
 
Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Geoff Varosky
 
Who? What? Where? Searching in SharePoint
Who? What? Where? Searching in SharePointWho? What? Where? Searching in SharePoint
Who? What? Where? Searching in SharePointGeoff Varosky
 
Planning and Configuring Extranets in SharePoint 2010 @ SharePoint Saturday N...
Planning and Configuring Extranets in SharePoint 2010 @ SharePoint Saturday N...Planning and Configuring Extranets in SharePoint 2010 @ SharePoint Saturday N...
Planning and Configuring Extranets in SharePoint 2010 @ SharePoint Saturday N...Geoff Varosky
 
Spsnh geoff varosky - jornata - planning and configuring extranets in share...
Spsnh   geoff varosky - jornata - planning and configuring extranets in share...Spsnh   geoff varosky - jornata - planning and configuring extranets in share...
Spsnh geoff varosky - jornata - planning and configuring extranets in share...Geoff Varosky
 
Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Geoff Varosky
 
Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Geoff Varosky
 
Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Geoff Varosky
 
SharePoint Saturday Hartford - 01/29/11 - Creating Custom Actions in SharePoi...
SharePoint Saturday Hartford - 01/29/11 - Creating Custom Actions in SharePoi...SharePoint Saturday Hartford - 01/29/11 - Creating Custom Actions in SharePoi...
SharePoint Saturday Hartford - 01/29/11 - Creating Custom Actions in SharePoi...Geoff Varosky
 
SharePoint Saturday EMEA - The Ribbon UI and Custom Actions in SharePoint 2010
SharePoint Saturday EMEA - The Ribbon UI and Custom Actions in SharePoint 2010SharePoint Saturday EMEA - The Ribbon UI and Custom Actions in SharePoint 2010
SharePoint Saturday EMEA - The Ribbon UI and Custom Actions in SharePoint 2010Geoff Varosky
 

Mehr von Geoff Varosky (20)

Automating Enterprise Application Deployments with PowerShell
Automating Enterprise Application Deployments with PowerShellAutomating Enterprise Application Deployments with PowerShell
Automating Enterprise Application Deployments with PowerShell
 
Automating Your Enterprise Application Deployments with PowerShell
Automating Your Enterprise Application Deployments with PowerShellAutomating Your Enterprise Application Deployments with PowerShell
Automating Your Enterprise Application Deployments with PowerShell
 
The Ribbon UI and Custom Actions in SharePoint 2010
The Ribbon UI and Custom Actions in SharePoint 2010The Ribbon UI and Custom Actions in SharePoint 2010
The Ribbon UI and Custom Actions in SharePoint 2010
 
Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010
 
Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010
 
Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010
 
Creating Custom Actions in SharePoint 2010
Creating Custom Actions in SharePoint 2010Creating Custom Actions in SharePoint 2010
Creating Custom Actions in SharePoint 2010
 
Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010
 
Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010
 
The Ribbon UI and Custom Actions in SharePoint 2010
The Ribbon UI and Custom Actions in SharePoint 2010The Ribbon UI and Custom Actions in SharePoint 2010
The Ribbon UI and Custom Actions in SharePoint 2010
 
Best Practices in SharePoint Development - Just Freakin Work! Overcoming Hurd...
Best Practices in SharePoint Development - Just Freakin Work! Overcoming Hurd...Best Practices in SharePoint Development - Just Freakin Work! Overcoming Hurd...
Best Practices in SharePoint Development - Just Freakin Work! Overcoming Hurd...
 
Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010
 
Who? What? Where? Searching in SharePoint
Who? What? Where? Searching in SharePointWho? What? Where? Searching in SharePoint
Who? What? Where? Searching in SharePoint
 
Planning and Configuring Extranets in SharePoint 2010 @ SharePoint Saturday N...
Planning and Configuring Extranets in SharePoint 2010 @ SharePoint Saturday N...Planning and Configuring Extranets in SharePoint 2010 @ SharePoint Saturday N...
Planning and Configuring Extranets in SharePoint 2010 @ SharePoint Saturday N...
 
Spsnh geoff varosky - jornata - planning and configuring extranets in share...
Spsnh   geoff varosky - jornata - planning and configuring extranets in share...Spsnh   geoff varosky - jornata - planning and configuring extranets in share...
Spsnh geoff varosky - jornata - planning and configuring extranets in share...
 
Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010
 
Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010
 
Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010Planning and Configuring Extranets in SharePoint 2010
Planning and Configuring Extranets in SharePoint 2010
 
SharePoint Saturday Hartford - 01/29/11 - Creating Custom Actions in SharePoi...
SharePoint Saturday Hartford - 01/29/11 - Creating Custom Actions in SharePoi...SharePoint Saturday Hartford - 01/29/11 - Creating Custom Actions in SharePoi...
SharePoint Saturday Hartford - 01/29/11 - Creating Custom Actions in SharePoi...
 
SharePoint Saturday EMEA - The Ribbon UI and Custom Actions in SharePoint 2010
SharePoint Saturday EMEA - The Ribbon UI and Custom Actions in SharePoint 2010SharePoint Saturday EMEA - The Ribbon UI and Custom Actions in SharePoint 2010
SharePoint Saturday EMEA - The Ribbon UI and Custom Actions in SharePoint 2010
 

Kürzlich hochgeladen

Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 

Kürzlich hochgeladen (20)

Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 

SPTechCon San Francisco 2011 - Geoff Varosky - Creating Custom Actions in SharePoint 2010

  • 1. Creating Custom Actions in SharePoint 2010 Geoff Varosky
  • 2. About Me Geoff Varosky Grace Hunt SharePoint Solutions Group Director, Development & Evangelism Blogger, Author, Speaker BASPUG Co-Founder SPS Boston Co-Organizer Blog : www.sharepointyankee.com Email: gvarosky@gracehunt.com Twitter: @gvaro LinkedIn & Facebook geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 3. About Grace Hunt Microsoft Gold Partner Founded 2004 Practice Areas Microsoft SharePoint Technologies Business Process and Planning Portals & Collaboration Information Worker Solutions Dynamics CRM, SL, GP, NAV Microsoft Cloud Technologies geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 4. Agenda What are Custom Actions? Demonstrations Using SharePoint Designer Importing into Visual Studio Finding Custom Actions Building & Deployment in Visual Studio References Q&A geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 5. What are Custom Actions? Site Actions Menu geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 6. What are Custom Actions? Ribbon UI Ribbon Tabs geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 7. What are Custom Actions? Site Settings Menu geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 8. What are Custom Actions? Edit Control Block (ECB) / List Item Menu geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 9. What are Custom Actions? Custom Action Group geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 10. What are Custom Actions? Tabs geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 11. What are Custom Actions? Tabs Organize a set of groups Contain one or more controls geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 12. What are Custom Actions? Controls Button Checkbox Color Picker Combo Box Drop Down Flyout Anchor Insert Table Label Menu Menu Section MRU Split Button Most Recently Used Spinner Split Button Text Box Toggle Button geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 13. What are Custom Actions? Bits of XML <CustomAction Id=“MyCustomAction” Location=“Microsoft.SharePoint.SiteSettings … /> Links <CustomAction…> <UrlActionUrl=“http://www.foo.com” /> </CustomAction> JavaScript (optional) <CustomAction …> <UrlActionUrl=“javascript:DoSomething();” /> </CustomAction> Code Behind (optional) <CustomAction … ControlAssembly=“MyCode, Version=1.0.0.0, Culture=neutral, PublicKeyToken=63316a326e123aec"ControlClass=“MyCode.Class“ /> geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 14. (CustomAction) Anatomy 101 <CustomAction ContentTypeId = "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"> <URLAction URL=“” /> <CommandUI></CommandUI> </CustomAction> geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 15. (CustomAction) Anatomy 101 <CustomAction ContentTypeId = "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"> <URLAction URL=“” /> <CommandUI></CommandUI> </CustomAction> geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 16. (CustomAction) Anatomy 101 Id (optional) Specifies a unique identifier for custom action May be a GUID or a unique term Example: DeleteWeb GroupID(optional) Identifies the unique group that this element is contained in Example: SiteTasks geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 17.
  • 18.
  • 19. Example: Listgeoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 20.
  • 21.
  • 22. Example: DeleteWebgeoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 23.
  • 25. The order in which your action will appear.
  • 26. If not specified, displayed in the order it is read by SharePoint by Feature and by order in element listing (XML).geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 27.
  • 28. References the current SPWeb context
  • 30. References the current SPSite context
  • 32. GUID of the item action is called from
  • 34. URL of the item the action is called fromgeoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 35. (CustomAction) Anatomy 101 UrlAction Tokens {ListId} GUID representation of the list {SiteUrl} References the URL of the SPWeb context the action is called from {RecurrenceId} Unsupported in context menus http://go.gvaro.net/bHaqaQ geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 36. What are Custom Actions? Can be bound to… Lists Tasks, Document Libraries, Custom, etc. geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 37. What are Custom Actions? Can be bound to… File Types By Extension - .docx, .pl, .foo, .bar geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 38. What are Custom Actions? Can be bound to… Content Types Tasks, Documents, Custom All (0x) http://go.gvaro.net/bbYxRy Programmatic Identifiers Tasks List (107) Content Types (0x) geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 39. Building Custom Actions SharePoint Designer 2010 Visual Studio 2010 CKS:DEV Adds Custom Action Item Templates http://cksdev.codeplex.com NotePad? geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 40. Building Custom Actions SharePoint Designer 2010 Build Custom Actions List Item Menu List View, Edit, Display Forms Visual Studio 2010 Import from WSP file Package Add Functionality Deploy geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 41. DEMOS! Building Custom Actions in SharePoint Designer 2010Importing Custom Actions into Visual Studio 2010Listing All Custom ActionsUsing CKS:DEVCustom Action GroupsHiding Custom ActionsMaybe more? geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 42. Bonus Round! Referencing JavaScript Files Jan Tielens on EUSP http://go.gvaro.net/dvCSS6 Can Add JavaScript into the HEAD of a page using a Custom Action Location references “/_layouts/” always geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 43. References Eric Kraus Listing all Custom Actions in the Farm with PowerShell http://go.gvaro.net/bD7OHm MSDN Custom Action Definition Schema CommandUIDefintions, Extensions, Handlers CustomAction, CustomActionGroup, HideCustomAction Default Locations and IDs http://go.gvaro.net/9q0QV2 geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 44. References WictorWilén Creating Custom Ribbon Extensions Part 1 - http://go.gvaro.net/aFUwBW Part 2 - http://go.gvaro.net/aGlydC Using JavaScript + Custom Actions to navigate Document Libraries http://go.gvaro.net/h2w8mN geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 45. References My Blog www.sharepointyankee.com Search for “Custom Action” Creating Custom Actions with SharePoint Designer Default List Type IDs Deploying Custom Actions Across All List Types Custom Actions in SharePoint 2007 SPBasePermissions Enumeration (Rights) Creating Custom Actions using SharePoint Designer 2010 “Delete This Site” More… geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 46. geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 47. Meets 2nd Wednesday/Month 6P – 8PM Microsoft N.E.R.D. Center http://www.bostonsharepointug.org Twitter: @BASPUG / #BASPUG geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 48. Q&A geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]
  • 49. About Me Geoff Varosky Grace Hunt SharePoint Solutions Group Director, Development & Evangelism Blogger, Author, Speaker BASPUG Co-Founder SPS Boston Co-Organizer Blog : www.sharepointyankee.com Email: gvarosky@gracehunt.com Twitter: @gvaro geoffvarosky gvarosky@gracehunt.com [email] www.gracehunt.com [web] sharepointyankee.com [blog] @gvaro [twitter]