Tag Info

New answers tagged

0

You can have a different master page for each team site the only thing you need to do is activate the SharePoint publishing features for each team site. Then go to Site Settings -> Master Page under Look and Feel and select the new master.


1

Each site can have it's own master page. If you're opting for minimal branding changes such as color, font and theme etc, it's possible to achieve such using Alternate CSS for that site. However, you're making structural changes (moving elements) then create a new master page and apply it the particular site or site collection.


0

You can try setting the current HTTPContext as null, this way sharepoint does not recognise that it is a GET Request. Please see the below code, which worked for me: using (SPSite site = new SPSite(SPContext.Current.Site.Url)) { using (SPWeb web = site.OpenWeb()) { HttpContext ...


0

I've stolen from the mysitehost. There the mysite is create with this mechanic: if (Page.IsPostBack) { SPLongOperation operation = new SPLongOperation(this.Page); operation.LeadingHTML = "Meeting wird erstellt"; operation.Begin(); SPUtility.ValidateFormDigest(); Do site creation ... operation.End(currentMeeting.Url); } // This code ...


2

Create a custom 404 page for your site collection, then either add code behind to it with your own logic as when you want to create a subsite and when not.. OR in SharePoint 2013 create a custom error page, add a content editor webpart to it, and some javscript code which will create a subsite for you, but there is a lot of things that you will require to ...


1

Is the stuff with promises important? If not why not just use 'Include(AllProperties)' to include the properties and do something like this: var context = SP.ClientContext.get_current(); var webs = context.get_site().get_rootWeb().get_webs(); context.load(webs, 'Include(AllProperties)'); context.executeQueryAsync(function(){ var enumerator = ...



Top 50 recent answers are included