sp-starter-kit
sp-starter-kit copied to clipboard
Starter Kit not adding oob/custom webparts to News pages with PnP.Powershell
Category
- [x] Bug
Describe the bug
Expected or Desired Behavior
Run the deploy kit v2 from here which provisions 3 sites. It should add oob text webparts for all News pages.
Observed Behavior
Run the deploy kit as it is without any change. Its not adding any OOB Text webparts in all 4 News Pages given in the xml. Also showing error when I tried to edit the page. Please see the screenshots for the reference. Same issue with custom webparts also.
Steps to Reproduce
Please run the script and open any News Page when script provisioning done. Webpart is not added. Show Error while editing the page.
Environment Details (Development & Target environment)
- Starter kit version: v2
- OS: Windows 10
- Target Environment: SharePoint Online
- Framework: [Node.js v6/v8/v10/v12]
- PnPPowerShell Version : PnP.PowerShell 1.4.0
- Browser(s): Chrome
- Additional details: I've checked and its working fine with older version - SharePointPnPPowerShellOnline 3.20.2004.0.
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Hi, thank you for the issue. I'll review this today.
Hi! I have reproduced this issue with the latest version of PnP PowerShell. Using a previous version of PnP PowerShell it still works correctly.
I have a suspicion that we'll need to put in an Issue over at the PnP PowerShell repository https://github.com/pnp/powershell
@bcameron1231 I wonder if the XML parsing has changed in the way clientside pages canvas controls for text, i.e.
<pnp:CanvasControl
WebPartType="Text"
ControlId="7819c9ed-fa21-4d71-9b84-71ef785c3dff" Order="2" Column="1">
<pnp:CanvasControlProperties>
<pnp:CanvasControlProperty
Key="Text"
Value="<p><span class="fontColorThemePrimary"><span class="fontSizeMediumPlus"><strong>BREATHTAKING VIDEOS &amp; PHOTOS</strong></span></span></p><p>Contoso MARK8 is the first drone to offer an 8K HDR camera that tilts vertically at and angle of 180<strong>°</strong>, combined with an up to 2.8X lossless zoom and dolly zoom effect.&nbsp;</p><p><span class="fontColorBlueDark"><strong>–</strong></span></p><p><span class="fontSizeMedium"><span class="fontColorBlueDark"><strong>2.8X FULL HD ZOOM</strong></span><br><em>Reveal your inner filmmaker</em></span></p>"
/>
</pnp:CanvasControlProperties>
</pnp:CanvasControl>
Let's add to our backlog adding the controls by hand to a page, exporting a template using the latest version of PS, and see if that generates a new template the does work.
Yup! Sounds good. I already started doing that and then got distracted. Will try and get a comparison of the news sections later today.
Hi @bcameron1231 , Any update on this ?