Showing posts with label MasterPage in SharePoint. Show all posts
Showing posts with label MasterPage in SharePoint. Show all posts

Tuesday, March 29, 2016

29 Mar

How to get current master page and change it on the Site using javascript

 GET request /_api/Web?$select=CustomMasterUrl,MasterUrl function MastePageChange() {     var clientcontext;     var cweb;     var customMasterURL = '/_catalogs/masterpage/NewMasterPage.master';     clientcontext = new SP.ClientContext.get_current();     cweb =...

Friday, January 29, 2016

29 Jan

How to Hide Ribbon from Anonymous users in SharePoint 2013

In 2013, we can’t modify the master page .master. We need to modify the .html file associated with the master page. We have to modify .html  <!--MS:--> and <!--ME:--> that shows the markup inside of the tags for the  masterpage Search for text in html file “<div class =”ms-belltown-anonshow”>”...

Sunday, January 10, 2016

10 Jan

how to hide master page style in list ,libraries and pages or popups ,IsDlg=0, IsDlg=1?

When user add URL  IsDlg=0, IsDlg=1 Add &IsDlg=1 hidden Ribbon bar  Add &IsDlg=0 but there’s no scroll bars <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script type="text/javascript"> _spBodyOnLoadFunctionNames.push("hideItAll"); function...

Wednesday, December 9, 2015

09 Dec

To fix Add an App option in SharePoint 2013 "Apps you can add" is missing

Add the below lines in the MasterPage in SharePoint <!--SPM:<SharePoint:AjaxDelta id="DeltaPlaceHolderLeftNavBar" BlockElement="true" runat="server">--> <!--SPM:<asp:ContentPlaceHolder id="PlaceHolderLeftNavBar" runat="server">--> <!--SPM:</asp:ContentPlaceHolder>--> <!--SPM:</SharePoint:AjaxDelta>--> <!--SPM:<SharePoint:AjaxDelta...

Friday, October 30, 2015

30 Oct

When click subsite logo to redirect to root site in Sharepoint site

In this post, site logo change to root site 1.Open you master page For this generte site logo in Snippet Gallery 2.Find the text SharePoint:SPSimpleSiteLink <!--MS:<SharePoint:SPSimpleSiteLink runat="server" CssClass="ms-siteicon-a" ID="x7917ecc8c38eab54c8c8d4bd69f58e33">--> ...  <!--ME:</SharePoint:SPSimpleSiteLink>--> 3.Replace...

Tuesday, August 11, 2015

11 Aug

Default master pages in SharePoint 2013

Custom.master System pages, such as forms and views. Used by all SharePoint 2013 and SharePoint Online SKUs. Default.master Site pages in publishing sites. Included in all SharePoint 2013 and SharePoint Online SKUs. Available when the publishing feature is activated. Application.master Some system pages, such as scope.aspx...

Wednesday, May 27, 2015

27 May

How to resolver SharePoint 2013 Literal content (' ') is not allowed within a 'System.Web.UI.UpdatePanelTriggerCollection'

The Literal content (' ') is actually an html non-breaking space that gets added when editing the page in SharePoint Designer for the first time   Remove the $nbsp; and save the page again to clear the err...