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 =...
Showing posts with label MasterPage in SharePoint. Show all posts
Showing posts with label MasterPage in SharePoint. Show all posts
Tuesday, March 29, 2016
Friday, January 29, 2016
29
Jan
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
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
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
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
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
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...