20 Jan 2013
This post on Delegate controls and Content Placeholders in SharePoint 2013 Publishing Master Page is an out come of one of my current task on a complex publishing web portal for both Internet and Intranet users using SharePoint 2013. Client’s requirements are to support all major browsers and smart phones. So I decided to explore the default publishing Seattle master page.
Here I have listed out my understanding .
· Cleanup the Master Page
· Identify the Delegate controls
· Identify the Master page regions
· Override the Delegate controls based on the customer requirements
· Reposition/hide the controls based on requirements
Cleanup the default Master Page
Before identifying the master page controls, I formatted the html markup tags using SharePoint Designer and provide the proper inline comments line by line. So that someone can easily understand the markup. You can find the formatted master page here.
Next I started listing out the Delegate Controls.
You can find here the complete list of delegate controls .We can easily override these controls with our custom implementations. In subsequent posts we can see how to override these Delegate Controls one by one.
To add the custom links globally.
To enable Farm level global links and not specific for web application or site collection level
To override the default “SharePoint” text at left corner
To add more links like “Newsfeed”, “SkyDrive”
SharePoint uses this one to publish the variations menu. Please carefully override this Delegate control if needed
To add more links between Share and Follow icon
| || || |
While editing the page, Server Ribbon will be loaded using this Delegate Control and we extend this using Custom Action
This delegate control will be using to override Search box
To load the custom quick launch data source
To load the custom tree view data source
Master Page Regions
Next I started to identify the master page regions. This will be helpful to apply our custom branding successfully. You can see the major region in the blow screen shot.
I have captured below the starting tag of each region and it will be helpful us to reposition the regions based on our requirements.
Top navigation menu
Site Contents in Quick launch menu
Site Action menu
Full screen mode
Left navigation bar
In my next article, we will see how to apply custom color and fonts by overriding OTB CSS classes.