Skip to content

ERROR: You cannot host text controls inside a one column full width section, only an image web part or hero web part are allowed #1045

Description

@Raven081189

I have a test page with an FullWith Hero Control:

image

I tried to edit this SitePage within an AzureFunction (.Net) with the latest PnP.Framework version.
The error occurs as soon as you load and save the SitePage without making any changes to it:

image

Here is the .csproj File. The PnP.Framework version is1.16.0:

image

Seems like there is an issue in the current version.

Activity

  1. marcoschmucker commented on Aug 14, 2024

    @marcoschmucker

    We have the same thing on tenants where the new section possibilities and banner webparts are available - but not too many have that at this point of time.

    Workaround: Remove the full width section in page templates, use a normal section with Text webpart. After provisioning make sure people add the full width section with banner. Not nice.

    Any updates? @Raven081189 ?

  2. PieterHeemeryck commented on Dec 12, 2024

    @PieterHeemeryck

    @marcoschmucker A lot more tenants have these updates available now, I think Microsoft pushed this through more generally by now.

    I'm having the same issue with PnP.Framework 1.17.0.

    I also see that I do not need to make any changes to the page. I concur that just loading & immediately saving the page with a full width section gives this error.

  3. PieterHeemeryck commented on Dec 12, 2024

    @PieterHeemeryck

    This issue is related: pnp/pnpcore#387

    I can see that the image web part lacks the fullWidth property in the JsonControlData when loading the page. No luck yet to set this property, as that is read-only for existing web parts.

    I was thinking in the likes of setting a relevant attribute (fullWidth or supportsFullBleed) to true to avoid the error when saving..
    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions