sp-dev-fx-webparts/samples/react-sitepages-metadata
Hugo Bernier 985384732a Updated legacy compatiblity matrix 2021-11-07 01:33:53 -05:00
..
assets Changed from updated to modificationDateTime 2021-05-02 15:39:42 -04:00
config New sample - React sitepages metadata (#481) 2018-04-27 18:18:36 +03:00
install New sample - React sitepages metadata (#481) 2018-04-27 18:18:36 +03:00
sharepoint/assets New sample - React sitepages metadata (#481) 2018-04-27 18:18:36 +03:00
src New sample - React sitepages metadata (#481) 2018-04-27 18:18:36 +03:00
.editorconfig New sample - React sitepages metadata (#481) 2018-04-27 18:18:36 +03:00
.gitignore New sample - React sitepages metadata (#481) 2018-04-27 18:18:36 +03:00
.yo-rc.json New sample - React sitepages metadata (#481) 2018-04-27 18:18:36 +03:00
README.md Updated legacy compatiblity matrix 2021-11-07 01:33:53 -05:00
gulpfile.js New sample - React sitepages metadata (#481) 2018-04-27 18:18:36 +03:00
npm-shrinkwrap.json New sample - React sitepages metadata (#481) 2018-04-27 18:18:36 +03:00
package.json New sample - React sitepages metadata (#481) 2018-04-27 18:18:36 +03:00
tsconfig.json New sample - React sitepages metadata (#481) 2018-04-27 18:18:36 +03:00

README.md

react-sitepages-metadata

Summary

Solution provides an enhancement to SitePages library that enables updating existing items with metadata, and a rollup WebPart to display them.

News rollup WebPart

News rollup WebPart

SitePages library CommandSet

SitePages library CommandSet

Compatibility

SPFx 1.4.1 Node.js v6 | v8 Compatible with SharePoint Online Compatible SharePoint 2019 Does not work with SharePoint 2016 (Feature Pack 2) Local Workbench Compatible Hosted Workbench Compatible

Applies to

Prerequisites

If you plan on using included PowerShell script make sure you have PnP PowerShell installed

Solution

Solution Author(s)
react-sitepages-metadata Oleg Rumiancev (LinkedIn, Twitter (olezhka_lt))

Version history

Version Date Comments
1.0 April 17, 2018 Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


Features

Solution provides an enhancement to SitePages library that enables updating existing items with metadata (implemented as Lookup fields). Relies heavily on Office UI Fabric.

Contains following elements:

  • Metadata-News rollup WebPart - displays published SitePages items (promoted to news), provides filtering and paging capabilities, as well as many configuration options
  • CommandSet extension for SitePages library - a button appears when a single item is selected. Clicking on the item shows a fillable dialog with lookup fields

Important notes

  • Changes in some WebPart properties will not be reflected after hitting "Apply" button - please refresh the page, too
  • To see a collection of lookup fields in the WebPart property pane change/edit any of the instantly visible properties, such as Item limit, width or item height. Reason for this is SitePages library will be queried for lookup lists only after the property pane is initially opened

Resources

Path to Awesome

  • Clone this repository
  • [Optional] run cofigure-lists.ps1 in install folder to create lookup lists and fields (amend according to your needs).
  • [Optional] fill lookup lists with items and publish some items in SitePages library
  • in the command line run:
    • git clone the rero
    • npm install
    • gulp serve --nobrowser
  • navigate to https://<tenant>.sharepoint.com/sites/<target site>/_layouts/workbench.aspx