Custom web component for the PnP Modern Search (v4) solution. This component adds a like button on search results displayed by the Search Results Web Part.
PnP Modern Search (v4) solution must be installed in your tenant.
Solution | Author(s) |
---|---|
pnp-modern-search-like-component | a1mery |
Version | Date | Comments |
---|---|---|
1.0 | November 08, 2024 | Initial release |
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.
-
Clone this repository
-
Ensure that you are at the solution folder
-
in the command-line run the follwing to build the component:
- npm install
- gulp bundle --ship
- gulp package-solution --ship
-
Deploy the component in your tenant ()
-
Register the component with your Search Results Web Part: Register your extensibility library with a Web Part
This component adds a like button on search results displayed by the Search Results Web Part. For the first version, only pages are supported.
This extension illustrates the following concepts:
- Use of a custom web component to extend the PnP Modern search (v4) solution
- Use PnPjs to like/unlike content
- Getting started with SharePoint Framework
- Microsoft 365 Patterns and Practices - Guidance, tooling, samples and open-source controls for your Microsoft 365 development
- PnP Modern Search (v4) - Extensibility possibilities
- PnP/PnPjs