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

Can't provision pages using new "PageTitle" web part in a OneColumnFullWidth section #637

Open
JonMillerUK opened this issue Jul 23, 2024 · 2 comments

Comments

@JonMillerUK
Copy link

With the release of the new page title options and the 'Banner' web part, it is not possible to provision new pages that have this web part in the default "OneColumnFullWidth" section type.

For example, if this is set within the site template XML:

          <pnp:Controls>
            <pnp:CanvasControl WebPartType="PageTitle" Order="1" Column="1" />
          </pnp:Controls>

The following error is generated when Invoke-PnPSiteTemplate is run:

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

If you change this to put the "PageTitle" web part into a standard "OneColumn" section type it will work.

It looks like the schema needs to be updated to permit this.

@Karstaedtd
Copy link

We have the same problem.
We use the templates for an automated translation workflow in SharePoint.
This is now increasingly not working due to the error message:

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

It would be great if you could provide a solution or workaround.
Thank you very much!

@OverkillTV
Copy link

It seems they fixed it on PnP Framework (pnp/pnpframework#1043) but not in PnP PowerShell. So I guess it will depend on whether we are provisioning using PnP.Framework or PnP.PowerShell

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

No branches or pull requests

3 participants