Skip to content

[BUG] #5141

@ishaisagi-hns

Description

@ishaisagi-hns

Reporting an Issue or Missing Feature

When creating a page in sharepoint using pnp, with a regular article layout, the full width section that the page header is in, is not available as a section returned in the $page.sections query.
Indeed, that section is not returned until someone goes to the page and manually changes one of the section's settings - then the code starts reporting it exists and allows manipulating it.

Expected behavior

$page.sections should include the oob section that holds the header, so that its settings (like emphasis) can be set.

Actual behavior

$page.sections.count returns 0 after $add-pnpPage

Steps to reproduce behavior

add-pnppage -name "test" -title "test" -layouttype 0
$page = get-pnppage "test"
write-host $page.sections.count

What is the version of the Cmdlet module you are running?

latest

Which operating system/environment are you running PnP PowerShell on?

  • [X ] Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions