Published on March 13, 2009
Customising SharePoint the supported way: From end-user to admin interfaces Chris O’Brien cScape http://sharepointnutsandbolts.blogspot.com
Introduction • 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 • The solution techniques:- – Custom site definitions – Modify copies of original files – CustomAction entries to modify links – Delegate controls
Custom site definitions • 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
demo Custom site definitions
Customising admin interfaces • 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 • 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
demo Customising admin interfaces
Customising admin interfaces (ctd) • 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
Delegate controls • 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 • 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
demo Delegate controls
Other customisations • CQWP – if amending properties: – export .webpart file – rename – import • Publishing console/RTE: – files provided for customisation in master page gallery – referenced from filesystem files
Summary • 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
Q&A Thank you mail: firstname.lastname@example.org blog: http://sharepointnutsandbolts.blogspot.com
... the topic was 'Customizing SharePoint the supported way ... SharePoint 2010 Ribbon Customization series; SharePoint 2010 Managed Metadata;
UK SharePoint user group - Customizing SharePoint ... Customizing MOSS the supported ... One of the key concepts SharePoint developers should be aware ...
Customizing the form for this SharePoint list is not supported. ... InfoPath and cther customizations for SharePoint 2010. Customization questions about ...
A couple of years ago I wrote here about the dangers of “look and feel fever” when working on SharePoint projects. This is where the UI of a SharePoint ...
SharePoint 2013 - Using SharePoint Designer, ... , I need the following SharePoint tags found in top right corner of site to customize master page,.
... /InfoPath-2010-Customize-a-SharePoint-List-Form? ... This feature is supported for external lists. Please see this video: blogs.msdn.com/ ...
Customizing SharePoint 2010 List ... of InfoPath 2010 used to customize SharePoint list forms in the ... not supported in customized ...