Add first template

This template is designed to show targeted unread news from the current site. Once the news is read, it is removed from the search results.

  1. Make sure you have followed the steps to install both PnP Modern Search (v4) web part and CT365 Search extension to the site with Compliance Tracker 365 installed.
  2. Add a couple of news articles with Mandatory terms and the Automatic Tracker Type. Add a new Web search image to the page to create the Site Assets library in the site if not available. Try not to refresh the page otherwise the content will become read!
  3. Add My Reads to the home (or a new) page to confirm the pages are indexed and being returned.
  4. Create PnP-Search/CT365 folders in the Site Assets library and copy the CardTemplateNews.html to the CT365 folder. Select the file, click the ℹ️ icon top right, expand More details at the bottom of the panel and click ‘Path’ to copy a direct link to the file.
  5. Add the PnP Search Results web part to the page with My Reads.
  6. Click Configure > SharePoint Search and navigate to the 4th page in the site panel.
  7. Click Import/Export settings > Import.
  8. Select the CardTemplateNews-webpartproperties.json and click apply.
  9. Navigate to the 2nd page in the web part panel and paste the copied path into “Use an external template URL”. Make sure the field is empty before pasting. At this point there may be an error. This is normal.
  10. Republish the page.

image

All going well, you should see your targeted unread news articles from the current site.