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

[FEATURE] Support Banner WebPart #4383

Open
Nolanus opened this issue Oct 4, 2024 · 1 comment
Open

[FEATURE] Support Banner WebPart #4383

Nolanus opened this issue Oct 4, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Nolanus
Copy link

Nolanus commented Oct 4, 2024

Is your feature request related to a problem? Please describe.
Unable to add the Banner WebPart via the CLI.

Describe the solution you'd like
Support for Banner WebPart in Add-PnPPageWebPart.

A Banner component can be created via the Sharepoint Online GUI. The following values exist

JsonWebPartData          : {"id":"cbe7b0a9-3504-44dd-a3a3-0e5cacd07788","instanceId":"00000000-0000-0000-0000-000000000000","title":"Banner","description":"Banner mit Titel- und Autoreninformationen
                           anzeigen","dataVersion":"1.5","properties":{"title":"Banner Title here","imageSourceType":4,"layou
                           tType":"FullWidthImage","textAlignment":"Left","showTopicHeader":false,"showPublishDate":fal
                           se,"topicHeader":"","authorByline":[],"authors":[],"isFullWidth":true,"enableGradientEffect"
                           :true,"isDecorative":true},"dynamicDataPaths":{},"dynamicDataValues":{},"serverProcessedCont
                           ent":{"htmlStrings":{},"searchablePlainTexts":{},"imageSources":{},"links":{}}}
HtmlPropertiesData       :
HtmlProperties           :
WebPartId                : cbe7b0a9-3504-44dd-a3a3-0e5cacd07788
SupportsFullBleed        : True
WebPartData              :
Title                    : Banner
Description              : Banner mit Titel- und Autoreninformationen anzeigen
WebPartPreviewImage      :
PropertiesJson           : {"title":"Banner Titlte here","imageSourceType":4,"layoutType":"FullWidthImage","textAlignment":"Le
                           ft","showTopicHeader":false,"showPublishDate":false,"topicHeader":"Subline here","authorByline":[],"auth
                           ors":[],"isFullWidth":true,"enableGradientEffect":true,"isDecorative":true}
Properties               : {"title":"Banner Titlte here","imageSourceType":4,"layoutType":"FullWidthImage","textAlignment":"Le
                           ft","showTopicHeader":false,"showPublishDate":false,"topicHeader":"Subline here","authorByline":[],"auth
                           ors":[],"isFullWidth":true,"enableGradientEffect":true,"isDecorative":true}
ServerProcessedContent   : {"htmlStrings":{},"searchablePlainTexts":{},"imageSources":{},"links":{}}
DynamicDataPaths         : {}
DynamicDataValues        : {}
Type                     : PnP.Core.Model.SharePoint.PageWebPart
SpControlData            : PnP.Core.Model.SharePoint.WebPartControlData
IsHeaderControl          : False
RichTextEditorInstanceId :
Section                  : PnP.Core.Model.SharePoint.CanvasSection
Column                   : PnP.Core.Model.SharePoint.CanvasColumn
DataVersion              : 1.5
CanvasDataVersion        : 1.0
CanvasControlData        :
ControlType              : 3
JsonControlData          : {"webPartId":"cbe7b0a9-3504-44dd-a3a3-0e5cacd07788","rteInstanceId":null,"addedFromPersisted
                           Data":true,"reservedHeight":228,"reservedWidth":711,"controlType":3,"id":"4874a93d-036e-4d85
                           -a482-1205f0510f3e","position":{"controlIndex":1,"zoneIndex":1,"sectionIndex":1,"sectionFact
                           or":8,"layoutIndex":1},"emphasis":{"zoneEmphasis":0},"zoneGroupMetadata":null}
InstanceId               : 00000000-0000-0000-0000-000000000000
Order                    : 1

Describe alternatives you've considered
Using the hero component does not result in the same component being added to the page.

Additional context
Bildschirmfoto 2024-10-04 um 19 34 58

@Nolanus Nolanus added the enhancement New feature or request label Oct 4, 2024
@wilecoyotegenius
Copy link
Contributor

@Nolanus It can be done. Just use -DefaultWebPartType PageTitle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants