Tag Info

New answers tagged

0

To everyone who responded: Thanks for your response! Upon my request, one of the users sent me the source code. My styles were being loaded, so my changes to the master page (and probably my earlier changes to the custom stylesheet) were there. It appears that the problem is in how I was targeting in CSS. For some background, I was attempting to add some ...


0

If you are experiencing an issue where you see the changes, but other users do not, try the following steps: Confirm that the style sheet and/or master page is checked in AND that a major version is published If required, you may need to confirm that the published version is ALSO approved Confirm that the correct master page is being loaded for users Have ...


0

First write your logic and deploy a WebPart to a SharePoint site. Add a New WebPart and add the custom WebPart you have developed. Now open the page within a SharePoint Designer. Now Open a Notepad. Now you have to copy the two things. Copy the Register tag within the Page. This will be in the format as shown below. <%@ Register TagPrefix="WpNs0" ...


0

You can change the MasterPage on a non-publishing site via 'Change the Look' in site settings. Simply navigate to Site settings then click on “Change the look”. On the Themes page click on the theme that you are using. Next on the left pane you can select the master page for this theme. Next click on “Try it Out” and then “Yes, keep it” and you’re ...


0

Follow these steps- Create custom master page and add it in features. Add an Event receiver on it. Write code as given below for FeatureActivated and FeatureDeactivating. public override void FeatureActivated(SPFeatureReceiverProperties properties) { SPSite site = properties.Feature.Parent as SPSite; if (site != null) { SPWeb rootWeb = ...


2

Master page gallery is present in the root web of the site collection. So, whether a master page is applied to a root site or any sub site, it is the server relative url of the root site collection which is needed. Consider that you have a sub site under the root site collection: http://aissp2013/sites/pub/s1. Here is the code to apply master page to it: ...


2

using (var ctx = new ClientContext( url )) { var web = ctx.Web; var masterPageUrl = String.Format( "{0}/_catalogs/masterpage/SPCCapatech/FullWidth_SideBar.master", ctx.Web.ServerRelativeUrl ); web.MasterUrl = masterPageUrl; web.CustomMasterUrl = masterPageUrl; web.Update(); ctx.Load( web ); ctx.ExecuteQuery(); } ...


1

You can still modify the .master file as you could in past versions, although the preferred way is through the .html file. Tools such as SharePoint Designer still support that, but beware of unghosting/customizing the file because it'll lose synchronization with the .master file in the 15 hive.


0

One way to find the master page a site is Use the object model and get the master page URL using web.MasterUrl.


2

Check if the safe control entry is there in the web.config, if not, add it, then the masterpage should work. Basically when you "edit" the masterpage you are unghosting it and that causes the Sharepoint to use type-safe parsers for all unghosted content.


3

Perhaps your issue has something to with something SharePoint Designer is doing. Try resetting the master page to the site definition, then download a copy of your master page from the master page gallery using the web UI. Rename the file and make a minor modification and upload it back via the web UI with the new name. Then select the new master page in ...


0

Changing Master page is very easy in SharePoint Using CSOM, we can give the Master Page URL in the web masterpage property, for reference u can check this link : http://www.sharepointsol.com/2015/01/apply-master-page-using-csom.html



Top 50 recent answers are included