-
Notifications
You must be signed in to change notification settings - Fork 390
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
Labels
bugSomething isn't workingSomething isn't working