Skip to content

Flexible Sections: Change a page title for a page that has flexible section disrupts the page structure #1633

@mohammadamer

Description

@mohammadamer

Category

  • Feature request

Describe the feature

Flexible sections seem unsupported when using PnPCore in modern pages. Changing only the page title in a page with flexible sections disrupts the page structure.

I'm developing a custom translation solution for modern pages, which works well with regular pages. However, it fails with pages that have flexible sections.

My technical approach involves locating the text web parts in the page and translating them to the respective language. On pages with flexible sections, changing just the page title disrupts the page structure.

Describe the solution you'd like

Could you please let me know if the flexible sections are supported or can be controlled, and if there are any tips or tricks I should be aware of?

Additional context

 var page = pages.First();
 if (page != null)
 {
     page.PageTitle = PageControls.PageTitle;

     await page.SaveAsync();
     await page.PublishAsync();
 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions