Skip to content
This repository was archived by the owner on Jan 19, 2021. It is now read-only.

Commit 4d68d55

Browse files
Merge pull request #1960 from erwinvanhunen/dev
Added support for client side pages on SP2019
2 parents 78b6f3e + cc001f0 commit 4d68d55

20 files changed

+121
-30
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
1616
## [3.7.1903.0]
1717

1818
### Added
19+
- Added support for client side pages on SP2019
20+
- Added support for ALM cmdlets (Add-PnPApp, Get-PnPApp etc.) on SP2019
1921
- Added Add-PnPAlert cmdlet to create alerts (SPO and SP2019 only)
2022
- Added Get-PnPAlert to list alerts (SPO and SP2019 only)
2123
- Added Remove-PnPAlert to remove alerts (SPO and SP2019 only)
@@ -35,6 +37,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
3537
- Nick Schonning [nschonni]
3638
- Koen Zomers [KoenZomers]
3739
- Marvin Dickhaus [Weishaupt]
40+
- Lars Fernhomberg [lafe]
3841

3942
## [3.6.1902.2]
4043

Commands/Base/PipeBinds/ClientSideComponentPipeBind.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if !ONPREMISES
1+
#if !SP2013 && !SP2016
22
using Microsoft.SharePoint.Client;
33
using OfficeDevPnP.Core.Pages;
44
using SharePointPnP.PowerShell.Commands.ClientSidePages;

Commands/Base/PipeBinds/ClientSidePagePipeBind.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if !ONPREMISES
1+
#if !SP2013 && !SP2016
22
using Microsoft.SharePoint.Client;
33
using OfficeDevPnP.Core.Pages;
44
using SharePointPnP.PowerShell.Commands.ClientSidePages;

Commands/Base/PipeBinds/ClientSideWebPartPipeBind.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if !ONPREMISES
1+
#if !SP2013 && !SP2016
22
using OfficeDevPnP.Core.Pages;
33
using System;
44
using System.Collections.Generic;

Commands/Base/PipeBinds/PagePipeBind.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if !ONPREMISES
1+
#if !SP2013 && !SP2016
22
using Microsoft.SharePoint.Client;
33
using OfficeDevPnP.Core.Utilities;
44
using SharePointPnP.PowerShell.Commands.ClientSidePages;

Commands/ClientSidePages/AddClientSidePage.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if !ONPREMISES
1+
#if !SP2013 && !SP2016
22
using Microsoft.SharePoint.Client;
33
using OfficeDevPnP.Core.Pages;
44
using SharePointPnP.PowerShell.CmdletHelpAttributes;
@@ -9,7 +9,7 @@ namespace SharePointPnP.PowerShell.Commands.ClientSidePages
99
{
1010
[Cmdlet(VerbsCommon.Add, "PnPClientSidePage")]
1111
[CmdletHelp("Adds a Client-Side Page",
12-
Category = CmdletHelpCategory.ClientSidePages, SupportedPlatform = CmdletSupportedPlatform.Online)]
12+
Category = CmdletHelpCategory.ClientSidePages, SupportedPlatform = CmdletSupportedPlatform.Online | CmdletSupportedPlatform.SP2019)]
1313
[CmdletExample(
1414
Code = @"PS:> Add-PnPClientSidePage -Name ""NewPage""",
1515
Remarks = "Creates a new Client-Side page named 'NewPage'",

Commands/ClientSidePages/AddClientSidePageSection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if !ONPREMISES
1+
#if !SP2013 && !SP2016
22
using OfficeDevPnP.Core.Pages;
33
using SharePointPnP.PowerShell.CmdletHelpAttributes;
44
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
@@ -9,7 +9,7 @@ namespace SharePointPnP.PowerShell.Commands.ClientSidePages
99
{
1010
[Cmdlet(VerbsCommon.Add, "PnPClientSidePageSection")]
1111
[CmdletHelp("Adds a new section to a Client-Side page",
12-
Category = CmdletHelpCategory.ClientSidePages, SupportedPlatform = CmdletSupportedPlatform.Online)]
12+
Category = CmdletHelpCategory.ClientSidePages, SupportedPlatform = CmdletSupportedPlatform.Online | CmdletSupportedPlatform.SP2019)]
1313
[CmdletExample(
1414
Code = @"PS:> Add-PnPClientSidePageSection -Page ""MyPage"" -SectionTemplate OneColumn",
1515
Remarks = "Adds a new one-column section to the Client-Side page 'MyPage'",

Commands/ClientSidePages/AddClientSideText.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if !ONPREMISES
1+
#if !SP2013 && !SP2016
22
using OfficeDevPnP.Core.Pages;
33
using SharePointPnP.PowerShell.CmdletHelpAttributes;
44
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
@@ -10,7 +10,7 @@ namespace SharePointPnP.PowerShell.Commands.ClientSidePages
1010
[Cmdlet(VerbsCommon.Add, "PnPClientSideText")]
1111
[CmdletHelp("Adds a text element to a client-side page.",
1212
"Adds a new text element to a section on a client-side page.",
13-
Category = CmdletHelpCategory.ClientSidePages, SupportedPlatform = CmdletSupportedPlatform.Online)]
13+
Category = CmdletHelpCategory.ClientSidePages, SupportedPlatform = CmdletSupportedPlatform.Online | CmdletSupportedPlatform.SP2019)]
1414
[CmdletExample(
1515
Code = @"PS:> Add-PnPClientSideText -Page ""MyPage"" -Text ""Hello World!""",
1616
Remarks = "Adds the text 'Hello World!' to the Client-Side Page 'MyPage'",

Commands/ClientSidePages/ClientSidePageUtilities.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if !ONPREMISES
1+
#if !SP2013 && !SP2016
22

33
namespace SharePointPnP.PowerShell.Commands.ClientSidePages
44
{

Commands/ClientSidePages/GetAvailableClientSideComponents.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if !ONPREMISES
1+
#if !SP2013 && !SP2016
22
using SharePointPnP.PowerShell.CmdletHelpAttributes;
33
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
44
using System.Linq;
@@ -8,7 +8,7 @@ namespace SharePointPnP.PowerShell.Commands.ClientSidePages
88
{
99
[Cmdlet(VerbsCommon.Get, "PnPAvailableClientSideComponents")]
1010
[CmdletHelp("Gets the available client side components on a particular page",
11-
Category = CmdletHelpCategory.ClientSidePages, SupportedPlatform = CmdletSupportedPlatform.Online)]
11+
Category = CmdletHelpCategory.ClientSidePages, SupportedPlatform = CmdletSupportedPlatform.Online | CmdletSupportedPlatform.SP2019)]
1212
[CmdletExample(
1313
Code = @"PS:> Get-PnPAvailableClientSideComponents -Page ""MyPage.aspx""",
1414
Remarks = "Gets the list of available client side components on the page 'MyPage.aspx'",

0 commit comments

Comments
 (0)