Skip to content

New command: Set modern page header #697

@waldekmastykarz

Description

@waldekmastykarz

Set modern page header

spo page header set -n|--pageName <pageName> -u|--webUrl <webUrl> -t|--type [type] --imageUrl [imageUrl] --altText [altText] -x|--translateX [translateX] -y|--translateY [translateY] --layout [layout] --textAlignment [textAlignment] --showKicker --showPublishDate --kicker [kicker] --authors [authors]

  • pageName: name of the page to set the header for
  • webURL: URL of the site where the page to update is located
  • type: type of header, allowed values None|Default|Custom, default Default
  • imageUrl: server-relative URL of the image to use in the header. Image must be stored in the same site collection
  • altText: Header image alt text
  • translateX: X focal point of the header image
  • translateY: Y focal point of the header image
  • layout: Layout to use in the header. Allowed values FullWidthImage|NoImage. Default FullWidthImage
  • textAlignment: How to align text in the header. Allowed values Center|Left. Default Left
  • showKicker: Set, to show kicker
  • showPublishDate: Set, to show publish date
  • kicker: Text to show in the kicker, when showKicker is set
  • authors: Page authors to show in the header

For more information see https://github.com/SharePoint/PnP-Sites-Core/blob/4fa4d6a9ab12a8e1c8fbdd811e8ad8817e5741b3/Core/OfficeDevPnP.Core/Pages/ClientSidePageHeader.cs

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions