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
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
Custom Page layout shows wrong time for date fields
Wrong control!
Change it to:
<SharePointWebControls:DateTimeField FieldName="Modified" runat="server" />
Be careful when working with date & time in SharePoint
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 ...
4
votes
Accepted
Only Content controls are allowed directly in a content page that contains Content controls
The error message is correct that only content tags can be added in those sections.
I have seen issues where the Content tag is all lower case like
<asp:content ....>
when infact it should ...
3
votes
Accepted
<FORM> tags are not supported in custom page layout
After more researching I have found out how to get this to work
As stated here there is already a FORM tag on the top level master page so if you try to add your form in page layout or add html ...
3
votes
<FORM> tags are not supported in custom page layout
I found out why - not good news
https://support.office.com/en-ca/article/Content-Editor-Web-Part-c1350ff6-934c-4c2e-8e53-1ec3b548a0dc
The Content Editor Web Part does not accept the HTML FORM ...
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
How do I show a list of recently published documents
Another option could be a content query web part. You can configure the web part to get documents from your library and apply condition to show recently modified documents. You can point web part to a ...
3
votes
Accepted
Is there a way to only load javascript based on the authenticated or anonymous user?
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
...
3
votes
Accepted
How to make a page title linkable/clickable?
Put this below script in CEWP on your page:
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script>
$( document ).ready(function()...
3
votes
Accepted
Add Web Part(dwp file) to the Page Layout
If you can deploy your page layout with a sharepoint solution it would be quite easy, you can add your webparts to the elements.xml file which includes your page layout:
<Elements xmlns="http://...
3
votes
Accepted
Customizing Page Layout, Master Pages & Content Types. For SharePoint on-premise and SharePoint online
Q1A1 - If you are following 1st approach, creating a copy of master page and do modification to this copy and leaving default master page copy as it is.
This scenarios is valid and it has been valid ...
3
votes
Accepted
Why is the title of my site displaying twice in my custom page layout?
Not sure if this is still available. But this is because the following part.
<!--MS:<asp:ContentPlaceHolder id="PlaceHolderPageTitleInTitleArea" runat="server">-->
<!--SPM:<...
3
votes
Accepted
Retrieve data from two lists in office 365 using javascript
give different name to your collection object(collListItem) name in both function.
in javascript or jQuery first run both function(GetUserInfo, GetGMMessage) than run both success function so ...
3
votes
Accepted
Display Image Sourced from Library In Page Layout
Try using RichImageField in the page layout.
Ex:
<PublishingWebControls:RichImageField ID="pageImage" runat="server" FieldName="PublishingRollupImage" />
3
votes
How to show the last modified date on a page layout
try
<SharePointWebControls:DateTimeField FieldName="Modified" runat="server" ControlMode="Display"/>
more details on this link : http://blog.tylerholmes.com/2009/06/free-last-modified-bydate-...
3
votes
Accepted
How to put a reference for a css in aspx page layout in SharePoint 2016
Its primarily opinion based answer.
But if you want to add in aspx page then I would definitely go with
<link rel="stylesheet" href="/_layouts/1033/styles/HtmlEditorCustomStyles.css" type="text/...
3
votes
Sharepoint O365 online creating page problem
Navigate to Site Settings -> Navigation under Look and Feel, uncheck "Show pages".
If the "Show pages" is checked, you can only hide the link of pages for users.
2
votes
Help with adding a content editor web part to custom page layout in visual studio
<AllUsersWebPart WebPartZoneID="Middle" WebPartOrder="3">
<![CDATA[
<?xml version="1.0" encoding="utf-8"?>
<WebPart xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:...
2
votes
SPDesigner - This page cannot be edited in SharePoint Designer
The reason is that the page has an attached page layout which it depends upon. Either you edit the page layout (and effect all other pages relying on this page layout) OR you detach the page from the ...
2
votes
Missing line breaks in multiline text field when placed in Page Layout
I am posting this answer really late but it wasted hours of mine to find the correct approach while it was really a very small thing to be changed. So, to save other's time :
<...
2
votes
Accepted
What's the point of xlmns:ie=“ie”?
This is an XML Namespace definition. In this case, SharePoint has defined an XML Namespace with both its prefix and URN set to "ie".
In the interests of not duplicating information, I've added some ...
2
votes
Accepted
SharePoint 2013 Set webpartZones in horizontal
HTML:
<div id="wrapper">
<div class="float left">left WP zone here</div>
<div class="float right">right WP zone here</div>
</div>
<div class="bottom">...
2
votes
Create Page Layouts in SP 2010
Using SharePoint Designer you can create multiple zones in a page layout.
Just Create a Page with any layout.
Create an HTML Prototype like below:
<table id="masterTable">
<tr><td&...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
page-layout × 7782013 × 170
sharepoint-designer × 101
master-page × 99
sharepoint-online × 84
web-part × 84
sharepoint-enterprise × 73
publishing-page × 73
2010 × 67
css × 54
content-type × 47
publishing-site × 40
custom-masterpage × 39
development × 36
javascript × 32
sharepoint-server × 31
html × 22
powershell × 19
publishing × 18
design-manager × 17
web-part-zone × 17
branding × 15
custom × 15
list × 14
visual-studio × 14