Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when adding text controls in a full-width section using Move-PnPPageComponent #1600

Open
1 task done
gsdelfino opened this issue Jan 24, 2025 · 1 comment
Open
1 task done
Assignees
Labels
area: pages API 📄 Working with modern pages question Further information is requested

Comments

@gsdelfino
Copy link

Category

  • Bug

Describe the bug

I encountered an issue when trying to add a text control inside a full-width one-column section using the Move-PnPPageComponent cmdlet. The following error is returned:

Move-PnPPageComponent: You cannot host text controls inside a one column full width section, only an image web part or hero web part are allowed.

The same issue occurs when I attempt to import a page template from an .xml file, using Invoke-PnPSiteTemplate, which includes a Custom WebPart in a full-width section.

Steps to Reproduce

  • Set-PnPPage -Identity Page -LayoutType Home -Publish
  • Add-PnPPageSection -Page Page -SectionTemplate OneColumnFullWidth -Order 0
  • Move-PnPPageComponent -Page Page -InstanceId Id -Section 1

Expected Behavior

The text web part should be successfully moved to the full-width section without any restrictions.

Actual Behavior

An error message is displayed, indicating that only image web parts or hero web parts are allowed in the full-width section.

Additional Information

It would be helpful to confirm whether this behavior is intentional and if there are any recommended workarounds or alternative approaches for placing text components in a full-width section.

@jansenbe
Copy link
Contributor

@gsdelfino : are you able to manually (using the UX) add the text part in that full width section?

@jansenbe jansenbe self-assigned this Jan 30, 2025
@jansenbe jansenbe added area: pages API 📄 Working with modern pages question Further information is requested labels Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: pages API 📄 Working with modern pages question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants