customizing share point the supported wa
TRANSCRIPT
![Page 1: Customizing Share Point The Supported Wa](https://reader035.vdocuments.us/reader035/viewer/2022062513/556ac6bdd8b42acd348b4d28/html5/thumbnails/1.jpg)
Customising SharePoint the supported way:From end-user to admin interfaces
Chris O’Brien cScape
http://sharepointnutsandbolts.blogspot.com
![Page 2: Customizing Share Point The Supported Wa](https://reader035.vdocuments.us/reader035/viewer/2022062513/556ac6bdd8b42acd348b4d28/html5/thumbnails/2.jpg)
• The problem:– Modifying SharePoint - within support boundaries– Typically should not modify existing files in 12 hive
(service packs/hotfixes could overwrite)
• Potential trouble spots:– Templates for new sites– Modifying authoring/admin interfaces– SharePoint’s user controls
Introduction
![Page 3: Customizing Share Point The Supported Wa](https://reader035.vdocuments.us/reader035/viewer/2022062513/556ac6bdd8b42acd348b4d28/html5/thumbnails/3.jpg)
• The solution techniques:-
– Custom site definitions– Modify copies of original files– CustomAction entries to modify links– Delegate controls
Introduction
![Page 4: Customizing Share Point The Supported Wa](https://reader035.vdocuments.us/reader035/viewer/2022062513/556ac6bdd8b42acd348b4d28/html5/thumbnails/4.jpg)
• Good starting point for any SharePoint site– Can ensure sites based on blank site for Content
Deployment (KB 923592)– Can control default features/content
• Well-documented in WSS SDK
• Onet.xml file specifies functionality/content
Custom site definitions
![Page 5: Customizing Share Point The Supported Wa](https://reader035.vdocuments.us/reader035/viewer/2022062513/556ac6bdd8b42acd348b4d28/html5/thumbnails/5.jpg)
demo
Custom site definitions
![Page 6: Customizing Share Point The Supported Wa](https://reader035.vdocuments.us/reader035/viewer/2022062513/556ac6bdd8b42acd348b4d28/html5/thumbnails/6.jpg)
• Admin pages are just files on filesystem– But not supported to modify them!– Solution – modify a copy and redirect link
• With the feature framework we can:– Deploy our customised file to 12 hive– Add/redirect any links to this page in site admin– Deactivate our customisation if required
Customising admin interfaces
![Page 7: Customizing Share Point The Supported Wa](https://reader035.vdocuments.us/reader035/viewer/2022062513/556ac6bdd8b42acd348b4d28/html5/thumbnails/7.jpg)
• Common targets for links:
• Microsoft.SharePoint.SiteSettings (columns are named)• Microsoft.SharePoint.Administration.Operations• Microsoft.SharePoint.Administration.ApplicationManagement
(more later)
• Can add new categories for our links
Customising admin interfaces
![Page 8: Customizing Share Point The Supported Wa](https://reader035.vdocuments.us/reader035/viewer/2022062513/556ac6bdd8b42acd348b4d28/html5/thumbnails/8.jpg)
demo
Customising admin interfaces
![Page 9: Customizing Share Point The Supported Wa](https://reader035.vdocuments.us/reader035/viewer/2022062513/556ac6bdd8b42acd348b4d28/html5/thumbnails/9.jpg)
• Other possible targets for links:• Microsoft.SharePoint.ContentTypeTemplateSettings• Microsoft.SharePoint.ContentTypeSettings• Microsoft.SharePoint.Administration.ApplicationCreated• Office.Server.ServiceProvider.Administration (Shared
Services/SSP links)• Microsoft.SharePoint.ListEdit.DocumentLibrary• Microsoft.SharePoint.Workflows• Microsoft.SharePoint.StandardMenu (SiteActions menu)• Microsoft.SharePoint.Create• Microsoft.SharePoint.ListEdit• EditControlBlock
Customising admin interfaces (ctd)
![Page 10: Customizing Share Point The Supported Wa](https://reader035.vdocuments.us/reader035/viewer/2022062513/556ac6bdd8b42acd348b4d28/html5/thumbnails/10.jpg)
• Tell SharePoint which control to load at run-time– Use to override which user control to load– Avoids modifying OOTB user controls
• OOTB page layouts use extensively– Global links e.g. ‘My sites’– Publishing console– Page head controls
• Can use standard .Net controls in SharePoint!
Delegate controls
![Page 11: Customizing Share Point The Supported Wa](https://reader035.vdocuments.us/reader035/viewer/2022062513/556ac6bdd8b42acd348b4d28/html5/thumbnails/11.jpg)
• Control to load can be user or server control
• Lowest sequence number wins– MS default is ‘100’
• Can pass properties from markup– Control you implement should walk control tree
Delegate controls
![Page 12: Customizing Share Point The Supported Wa](https://reader035.vdocuments.us/reader035/viewer/2022062513/556ac6bdd8b42acd348b4d28/html5/thumbnails/12.jpg)
demo
Delegate controls
![Page 13: Customizing Share Point The Supported Wa](https://reader035.vdocuments.us/reader035/viewer/2022062513/556ac6bdd8b42acd348b4d28/html5/thumbnails/13.jpg)
• CQWP – if amending properties:– export .webpart file– rename – import
• Publishing console/RTE:– files provided for customisation in master page gallery– referenced from filesystem files
Other customisations
![Page 14: Customizing Share Point The Supported Wa](https://reader035.vdocuments.us/reader035/viewer/2022062513/556ac6bdd8b42acd348b4d28/html5/thumbnails/14.jpg)
• Assume direct file modification unsupported
• SharePoint has extremely flexible architecture– Designed for modification
• Make use of techniques covered:– Custom site definitions– Modify copy of file and redirect link– DelegateControls
Summary