Tag Info

Hot answers tagged

2

If it is a Publishing web site then you can use SetInherit so that subsites will inherit the custom master page. Example: SPWeb web = SPContext.Current.Web; PublishingWeb publishingWeb = PublishingWeb.GetPublishingWeb(web); publishingWeb.CustomMasterUrl = "/_catalogs/masterpage/mycustom.master"; publishingWeb.CustomMasterUrl.SetInherit(true, true); ...


2

I do believe Site Collection scope is correct for a masterpage feature. The problem is, you cannot force subsites to use this masterpage (even though there's an option to reset all subsites in the UI). EDIT: If it's a publishing web you can do this, look at @Nadeem Yousuf's answer You will have to iterate over all the current SPWeb subsites and set their ...


2

you can do Response.Write, or you can use asp:Literal. var ltlCnt = new LiteralControl(); string divStart = @"<div>"; ltlCnt.Text += divStart; string divEnd = @"</div>"; ltlCnt.Text += divEnd; this.[divOnPage].Controls.Add(ltlCnt);


2

Add the RootWebOnly="true" property to your custom list. The Feature with the Custom List must be scoped to Site. <ListInstance Title="My custom list" FeatureId="00BFEA71-DE22-43B2-A848-C05709900100" TemplateType="100" Id="MyCustomList" Description="Simple custom list sample." ...


1

Yes and no. First off, in order to develop a SharePoint solution without SharePoint installed, you would have to get a copy of the ISAPI folder from the 15 hive, and you might have to make a registry change. You will not be able to debug, however. You cannot deploy it directly, but you can publish the wsp to your SharePoint Online site, and then activate ...


1

To develop apps for SahrePoint Online you should select 'App for SharePoint' instead of Visual Web Part. You can choose from three types of hosting options, SharePoint-hosted, Provider-hosted or Autohosted. To know what are the differences between these options take a look at: http://msdn.microsoft.com/en-us/library/office/fp179887%28v=office.15%29.aspx. If ...


1

As is evident from the first error there is an issue with finding assembly information. This may mean you may have changed namespace, class name etc. Normally AlwaysForceInstall = true should take care of the feature which is not uninstalled. Value TRUE specifies that the Feature is installed by force during installation even if the Feature is already ...


1

Scope of masterpage feature should be set to 'Site'. You need to set the Reset all sub sites option for the masterpage to be applied to the sub sites.But also the sub sites will inherit the new master only if Site collection feature "SharePoint Server Publishing Infrastructure" is activated and in the sub sites the site feature "SharePoint Server Publishing" ...



Only top voted, non community-wiki answers of a minimum length are eligible