New answers tagged

0

I recently had a similar requirement and achieved this with the page-break-before property. Assume you have some HTML on your page like this: <div id="table1" class="table-chart"></div> <div id="chart1" class="table-chart"></div> Now add a script editor web part to your page and add this to it: <style> @media print { ...


0

Looks like the same issue here, where the end result was submitting a bug report to MS. That wont get it fixed.(not fast anyway) You will still need to figure out a work around. ...


0

For SharePoint 2010 Please insert below given CSS code to your applied master page. #s4-bodyContainer { width: 950px !important; margin-left:auto; margin-right:auto; } You can follow below article to fulfill your requirements. Creating a centered fixed width design in SharePoint 2010 Note:- Please change the width as per your need in given CSS class. ...


0

Instead of having a page layout with these many webpart zones for each webpart, try this option. Create a page using 'Body Only' page layout Edit the page Insert a table in the page content using the Ribbon -> Insert -> Table. Select number of rows and column needed. Once you add the table set the Row height and Column Width in the Table Layout tab. ...


0

Try this: To remove: Look for 'PlaceHolderSearchArea' content place holder see if it's present in your custom master page. Move that placeholder to the bottom of the master page where all other hidden content place holders are. Also make sure there are no duplicates. <asp:ContentPlaceHolder ID="PlaceHolderSearchArea" runat="server" Visible="false" ...


0

Check again if you have publish the modified page layout and the correct master page is being referred to. Still its appearing then i will prefer adding a CSS attribute in the master page to hide the small search block.


1

If it's SharePoint 2013 you can go to that file (ms office files) click on the elipses so you get the preview, at the bottom of the preview there is a drop down, click the drop down and select embed information. Copy the code and paste it in a content editor.


0

Yes, DateOnly="true" throw error. So, you can replace value by script like this: wrap the field <span class="myDate"> <SharePointWebControls:FieldValue runat="server" FieldName="Created" id="CreatedOn"/> </span> set value by js : if($('.myDate').text() != ""){ var date = $('.myDate').text().split(' ')[0].split('/') ...


0

Yes you can revert your page layout using SharePoint Designer. Open your site in SharePoint designer and go to Page Layouts section select your page layout go to version history of that page layout select the respective version and revert it back. Yes changing the page layout will impact the webparts.


0

I found a very roundabout way of doing it using GUI. Click on Open Web Part Page in maintenance view (screenshot you've provided) Tick Web Part Page Title Bar Close Go to the actual page, the title bar should be missing now. On the page Site Actions Edit Page Add Web Part Advanced Web Part gallery and options (bottom right hand side) click on closed ...


2

Yes, inside the .aspx files for the layout, use the Security Trimmed Control: https://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.webcontrols.spsecuritytrimmedcontrol.aspx Specifically you'd probably do something like this: <SharePoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl1" ...


0

By using below code you will get the Page Layout URL of current page. SP.SOD.executeFunc('sp.js', 'SP.ClientContext', sharePointReady); function sharePointReady(){ var url = SP.Utilities.Utility.getLayoutsPageUrl(window.location.href); /* DO YOU STUFF */ }



Top 50 recent answers are included