Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

What is the best way to customize my site template in SharePoint 2013

$
0
0

Hi everybody  ,

I just have installed user profile service and my sites in SharePoint 2013. Now I want to customize my site as every one create himself site , his site create some list and library for his automatically and also it attach my custom master page for his.

I can design new master page and staple it on my site using code like this :

SPWeb web = properties.Web;
            SPWeb rootWeb = web.Site.RootWeb;
            web.MasterUrl = rootWeb.MasterUrl;
            web.CustomMasterUrl = rootWeb.CustomMasterUrl;
            web.Update();

and also for creating some lists and document libraries ,I can create some event receivers on  site create in order to create these lists.

Now I have some questions :

1-What solutions there are ?

2- Is this the best way to approach my idea.

3- If it is not, which is the best solution.

Thanks in advance.



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>