youtube image
From YouTube: Building a list view command set to demote previously promoted news articles from pages library

Description

For this 10-minute Developer-focused demo, Mikael Svenson dives into an extension allows users to demote read-only promoted news pages! Pull Theme colors from Global state object or UI Fabric getTheme for SVG icon. The code checks if page is in promoted state and if user has permissions to demote. This example shows how extensions – in this case a demotion capability - can be made available to all sites across the tenant and adopt local site theme. This PnP Community demo is taken from the SharePoint Framework and JavaScript Special Interest Group (SIG) – Bi-weekly sync call recorded on February 25, 2021.

Demo Presenter: Mikael Svenson (Microsoft) | @mikaelsvenson

Supporting materials:
• Sample - Add Folders Command | https://github.com/pnp/sp-dev-fx-extensions/tree/master/samples/react-command-addfolders
• Blog - Fixing base64 SVG icons in SPFx — an interactive post | https://tahoeninjas.blog/2019/08/31/fixing-base64-svg-icons-in-spfx/
• Document - Controlling tenant wide deployment from App Catalog site collection | https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/basics/tenant-wide-deployment-extensions#controlling-tenant-wide-deployment-from-app-catalog-site-collection
• SharePoint UserVoice - We can Promote but not Demote News. Add ability to Demote News pages. | https://sharepoint.uservoice.com/forums/329214-sites-and-collaboration/suggestions/38255671-we-can-promote-but-not-demote-news-add-ability-to

Learn more:
• Learn more about the Microsoft 365 Patterns and Practices community at: http://aka.ms/m365pnp
• Visit the Microsoft 365 Patterns and Practices community YouTube channel: https://aka.ms/m365pnp-videos