CHunky Universe of Vigourous Astonishing SHarepoint :)

Creating custom my site template

Here are some links to start creating a custom my site template:

If you want to take the default templates take a look at {SharepointRoot}\TEMPLATE\SiteTempates\SPMSITE (the site template for “my content” – an individual site collection rootweb template, and first of all {SharepointRoot}\TEMPLATE\SiteTempates\SPMSITEHOST, the host site template for my sites.

They include pages and onet.xml. Both use mysite.master which can be found at:

  • {SharepointRoot}\TEMPLATE\FEATURES\MySiteLayouts\mysite.master
  • {SharepointRoot}\TEMPLATE\FEATURES\PersonalizationSite\mysite.master

If you compare so you will see that they are identical, so I would like to know why there are two same files in different locations.

MySite has actually two ribbons, the second with additional links (my content, newsfeed..) is defined by:
<SharePoint:DelegateControl runat=”server” ControlId=”GlobalNavigation”/>

If you want to remove some links, just remove the controls like: <SPSWC:EditProfileButton runat=”server” id=”ddlEditProfile”/>

While creating a custom my site template I discovered many useful controls from Sharepoint WebControls namespace (often shortened as SPWC in xml namespace). Here is an example how we can get a string value from a localized resource:

<SPSWC:StringValueEx ResourceFile="spscore" LocId="SkipContactCard_Text" runat="server" />

Or this one:

Using profile controls outside My Site

These web controls can be used outside my site, actually in any other page. But don’t forget to add ProfilePropertyLoader:

     runat="server" /> 
     id="ddlEditProfile" />

If there is no ProfilePropertyLoader, other controls won’t show up. So if you ask yourself: “OMG, I added EditProfileButton, but it doesn’t appear!” Well, just add ProfilePropertyLoader.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Вула Чăвашла

VulaCV - Чăвашла вулаттаракан сайт

Discovering SharePoint

And going crazy doing it

Bram de Jager - Coder, Speaker, Author

Office 365, SharePoint and Azure

My programming life

and everything in between

SharePoint Development Lab by @avishnyakov

It is a good place to share some SharePoint stories and development practices.

SharePoint Dragons

Nikander & Margriet on SharePoint

Paul J. Swider - RealActivity

RealActivity is a specialized healthcare services and solution advisory firm.

Mai Omar Desouki - Avid SharePointer

Egyptian & Vodafoner - Senior SharePoint Consultant

Cameron Dwyer | Office 365, SharePoint, Outlook, OnePlace Solutions

Office 365, SharePoint, OnePlace Solutions & Life's Other Little Wonders


Me and My doings!

Share SharePoint Points !

By Mohit Vashishtha

Jimmy Janlén "Den Scrummande Konsulten"

Erfarenheter, synpunkter och raljerande om Scrum från Jimmy Janlén

Aryan Nava

Toronto Blockchain Consulting and Smart Contract Development


SharePoint for everyone


Ryan Dennis is a SharePoint Solution Architect with a passion for SharePoint and PowerShell

SharePoint 2020

The Vision for a Future of Clarity

Aharoni in Unicode

Treacle tarts for great justice

... And All That JS

JavaScript, Web Apps and SharePoint

%d bloggers like this: