Skip to content

Support Flex sections in modern pages #1632

Open
@pschaeflein

Description

@pschaeflein

Category

  • Feature request

Describe the feature

Modern SharePoint pages support a flexible section.

Image

In the PnPCore SDK, these sections are not supported - they appear as OneColumn section.

Reviewing the CanvasContent1 column show properties related to flexible sections:

{
  "position": {
    "layoutIndex": 1,
    "zoneIndex": 2,
    "zoneId": "f289b135-c10c-4a99-8ec9-45bcdf214533",
    "sectionIndex": 1,
    "sectionFactor": 100,
    "controlIndex": 2
  },
  "id": "44cdc79f-1f85-40d1-8af8-b071f3252781",
  "controlType": 4,
  "isFromSectionTemplate": false,
  "addedFromPersistedData": true,
  "flexibleLayoutPosition": {                    <--  New properties
    "lg": {
      "x": 48,
      "y": 7,
      "w": 22,
      "h": 3,
      "dataVersion": "1.0"
    }
  },
  "innerHTML": "<p>This is sample text, dragged to bottom right.</p>"
},

Describe the solution you'd like

Ideally, the SDK will support adding a flexible section to a page, and position web parts in the flexible section.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions