Skip to content

Add parameters for collapsible sections in Add-PnPPageSection cmdlet#5291

Merged
gautamdsheth merged 2 commits into
devfrom
feat/addsection-params
Apr 16, 2026
Merged

Add parameters for collapsible sections in Add-PnPPageSection cmdlet#5291
gautamdsheth merged 2 commits into
devfrom
feat/addsection-params

Conversation

@gautamdsheth
Copy link
Copy Markdown
Collaborator

@gautamdsheth gautamdsheth commented Apr 16, 2026

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

Added params

Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings April 16, 2026 18:04
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for configuring collapsible sections when creating page sections via Add-PnPPageSection, including updated documentation, tests, and a changelog entry.

Changes:

  • Added -Collapsible, -DisplayName, and -IsExpanded parameters to Add-PnPPageSection.
  • Extended the existing client-side pages test to validate collapsible section properties.
  • Updated cmdlet documentation and added a changelog entry for the new parameters.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
src/Commands/Pages/AddPageSection.cs Adds new cmdlet parameters and applies collapsible settings to the newly added section.
src/Tests/OriginalTests/ClientSidePagesTests.cs Updates an existing test to assert collapsible section behavior.
documentation/Add-PnPPageSection.md Documents new parameters and provides an additional example.
CHANGELOG.md Notes the addition of the new cmdlet parameters.

Comment thread src/Commands/Pages/AddPageSection.cs
Comment thread src/Tests/OriginalTests/ClientSidePagesTests.cs
Comment thread CHANGELOG.md Outdated
Comment thread src/Commands/Pages/AddPageSection.cs Outdated
Comment thread src/Commands/Pages/AddPageSection.cs
Co-authored-by: Copilot <copilot@github.com>
@gautamdsheth gautamdsheth merged commit 83cd5a8 into dev Apr 16, 2026
5 checks passed
@gautamdsheth gautamdsheth deleted the feat/addsection-params branch April 22, 2026 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants