pnp / PnP-Sites-Core

Microsoft 365 Dev PnP Core component (.NET) targeted for increasing developer productivity with CSOM based solutions.
Other
417 stars 644 forks source link

[BUG] Error when applying HeaderlessSearchResults client side page layout #2719

Closed JohnnyKapps closed 4 years ago

JohnnyKapps commented 4 years ago

Which PnP repository should you use to report the issue?

Environment

[X] Office 365 / SharePoint Online [ ] SharePoint 2016 [ ] SharePoint 2013

Expected or Desired Behavior

Apply the HeaderlessSearchResults page layout via PnP cmdlets to have a full page experience.

Observed Behavior

An error has been throwed when I try to execute this cmldlet:

Set-PnPClientSidePage -Identity SearchResults -LayoutType HeaderlessSearchResults

Set-PnPClientSidePage : Cannot bind parameter 'LayoutType'. Cannot convert value "HeaderlessSearchResults" to type "OfficeDevPnP.Core.Pages.ClientSidePageLayoutType". Error: "Unable to match the identifier name HeaderlessSearchResults to a valid enumerator name. Specify one of the following enumerator names and try again: Article, Home, SingleWebPartAppPage, RepostPage"

This page layout still unavailable?

ghost commented 4 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

JohnnyKapps commented 4 years ago

Needed to update the psmodule, everything working!