15
votes
Add web part zone in custom page layout
SharePoint 2013
In 2013 you can use design manager for generating web-part zone snippet.
To insert a Web Part zone snippet
Browse to your publishing site.
In the upper-right corner of the page, ...
9
votes
Accepted
SP2013 special chars broken in HTML page layout
I fixed it after wasting frustrating hours on this !
Its quite easy but doesnt make sense.
Just add the HTML 4.1 (not HTML 5 - it wont work) char encode tag to the additional pagehaed placeholder, ...
9
votes
SharePoint designer is showing “Server error: this file may not be moved, deleted, renamed or otherwise edited”
You can't change the .master file when it's bound like this, you can only edit the .html file. It will re-generate the .master when you save the .html.
This is due to the Design Manager packet in ...
9
votes
SharePoint designer is showing “Server error: this file may not be moved, deleted, renamed or otherwise edited”
The issue is that you should copy seattle.html which will auto create a .master page for you, and there is a link between the files.
To resolve the issue,
create a copy of seattle.html
Now you ...
8
votes
Accepted
Add web part zone in custom page layout
Add the following snippet:
<WebPartPages:WebPartZone runat="server" Title="TestZone1" ID="TestZone1">
<ZoneTemplate></ZoneTemplate>
</WebPartPages:WebPartZone>
It works.
8
votes
Accepted
Recommended height and width for promoted links background images
The promoted links default size is 150x150 pixel. But you can always have bigger/smaller pictures and then manipulate the CSS for the promoted links if you want bigger/smaller tiles.
Change the ...
7
votes
The same CSS displays different view in SharePoint 2013
If you have deployed the CSS file to the Style Library or an Assets library, make sure it is checked in as a major version and approved.
It could be possible that your page layout is not published ...
7
votes
Accepted
how to open URL Field link in new window SharePoint 2013
Open in new tab is only supported in Publishing URL field. You are using the basic URL field. You need to use PublishingWebControls:RichLinkField. This will give you the "open in new window" option.
...
6
votes
how to open URL Field link in new window SharePoint 2013
Since the control has a CssClass Property, you could manipulate the target attribute using JQuery. For example (not tested):
<SharePointWebControls:UrlField ID="UrlField2" FieldName="Link Button" ...
5
votes
How to update custom master page and page layout, which is already deployed
I was facing the exact same issue and resolved it by setting ReplaceContent="true" in the element.xml file of the module as below
<File Path="MasterPageModule\MyMasterPage.master" Url="...
5
votes
Accepted
Is there a way to display a warning message inside my enterprise wiki page layout , when the page status is Rejected
How about something like this:
<script type="text/javascript">
_spBodyOnLoadFunctions.push(function(){
ExecuteOrDelayUntilScriptLoaded(showStatusAlert, "sp.js");
})
function showStatusAlert(...
5
votes
Accepted
Upload Master Page / Page Layouts using PowerShell
Option 1
How to add/upload publishing page layout via CSOM in PowerShell:
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client")
[System.Reflection.Assembly]::...
5
votes
Accepted
Create a site template without using "save site as template"
What you have described in your question is not called a site template , it's called a page layout as shown below :
So To create a page layout follow the mentioned steps below
Browse to your ...
5
votes
Accepted
IE problem with JQuery
I think your issue is using for(let i = 0 syntax.
It has not worked very well in IE < edge: https://stackoverflow.com/questions/39159669/let-statement-in-loop-doesnt-work-as-expected-in-ie
4
votes
Accepted
Page Layout html xsltlistviewwebpart with custom view
This might classify as more of a work-around than a solution, but I used the guid of the view as the webpart id.
I decided to look into the content database to see how views are stored. In the stored ...
4
votes
Accepted
Include js file in Page Layout, after jQuery file in Master Page
In the master page there is a place holder for the additionalpagehead . Make sure the jQuery reference Comes before that. that way the jQuery reference will be processed first
4
votes
Accepted
Can I hide the "new document or drag files here" link inside the wiki library
Probably the most simple option would be just to hide List View Toolbar
Open the page in Edit Mode
Go to XLV web part properties and specify Toolbar Type: No
Toolbar
That's it.
P.S. Of course, you ...
4
votes
Accepted
How can I hide the page header (title) for just a specific page
Add the following CSS and reference it from your masterpage:
<style>
#aspnetForm[action*="Home.aspx"] #pageContentTitle {display:none;}
</style>
4
votes
Accepted
More than one Pages library?
The answer to this question is: No, it is not possible to create another library with the same functionality as Pages on a publishing site.
4
votes
Accepted
Unknown server tag "WebPartPages:WebPartZone"
The same issue occurred at my end when I placed the assembly reference in the page directives (top of the page layout). Namespace was as below:
<!--SPM:<%@Register Tagprefix="WebPartPages" ...
4
votes
How to put a reference for a css in aspx page layout in SharePoint 2016
The better way of loading CSS in SharePoint world is always using CssRegistration tags. You can always specify the order of script load, conditional script load, also when using same master page at ...
4
votes
Accepted
Add a webpart zone to display form
It's quite possible. Just pop open SharePoint Designer and navigate to it. /Lists/MyListName/Forms/DispForm.aspx. Just make sure you don't modify the original DispForm.aspx. You always want to keep ...
4
votes
Accepted
"ContentType" vs "PublishingAssociatedContentType" difference?
The Page Layout has a content type of "Page Layout". This is how SharePoint differentiates them from other things in the gallery, like master pages, design files, and display templates.
A page layout ...
3
votes
On Sharepoint 2013 how do you show the last modified date on a page layout
We had a similar question, but we were restricted from modifying any sitewide files. The administrator would not permit changes to the master page.
Workaround: the REST API for Sharepoint 2013 lets ...
3
votes
Search in List view on publishing page layout
This is an issue with InplView not loading on demand when a publishing page is in published state. Still a bug in Feb 2017.
To force the script to load, add the following script to the page:
...
3
votes
Accepted
Copy a page across different site collections
SharePoint Designer (SPD) could be utilized to import/export site pages across site collections.
How to copy site page from one site collection to another
open SharePoint (source) site via SPD and ...
3
votes
Accepted
How to change the icons for my enterprise wiki library items
You could either change the icon for htm pages in the hive (its ichtm.gif by default ["ic" for icon and "htm" for filetype]) or overwrite it by CSS or JS.
Here's a example for plain CSS:
img[src="/...
3
votes
How can I hide the page header (title) for just a specific page
You can easily add a content editor webpart and add in your CSS in the HTML editor.
Or you can add your CSS to a text file, then using a content editor webpart, you can reference that text file and ...
3
votes
Modify the default list view to expand the "Description" field insdie the view table
Since a view for Issue Tracking list is rendered as a table you could use the CSS to define column width, for example:
tr.ms-viewheadertr th:nth-child(5) {
min-width: 200px;
}
Note: The column ...
3
votes
Created by field shows claimbased username in page layout
In the Page Layout, you need to add the FormField with the Field Name Author in order to render the Display name.
<SharePoint:FormField ID="FormField1" ControlMode="Display" FieldName="Author" ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
page-layout × 7712013 × 170
sharepoint-designer × 101
master-page × 99
web-part × 82
sharepoint-online × 81
sharepoint-enterprise × 73
publishing-page × 72
2010 × 67
css × 54
content-type × 47
publishing-site × 40
custom-masterpage × 38
development × 36
javascript × 32
sharepoint-server × 31
html × 22
powershell × 18
publishing × 18
design-manager × 17
web-part-zone × 17
branding × 15
custom × 15
list × 14
visual-studio × 14