Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.06 KB

README.md

File metadata and controls

46 lines (34 loc) · 1.06 KB

unpromote-news

Prerequisites :

  1. The PromotedState Column should not be readonly.To do so run the following powershell cmds.
Get-PnPField -List "Site Pages" -Identity "PromotedState" 
  1. Copy the ID and paste it below in Identity
$columnID=Get-PnPField -Identity f5ad16a2-85be-46b2-b5f0-2bb8b4a5074a
$columnID.ReadOnlyField = $false
$columnID.UpdateAndPushChanges($true)
$c.Context.ExecuteQuery();

Extension(List View Command Set) for unpromotting a news (or unplublish a news)

What happens if the news is already unpromoted.

Building the code

git clone the repo
npm i
npm i -g gulp
gulp

This package produces the following:

  • lib/* - intermediate-stage commonjs build artifacts
  • dist/* - the bundled script, along with other resources
  • deploy/* - all resources which should be uploaded to a CDN.

Build options

gulp clean - TODO gulp test - TODO gulp serve - TODO gulp bundle - TODO gulp package-solution - TODO