This page explains how to add a template that displays targeted unread news from the current site.
Once the news is read, it is automatically removed from the search results.
✅ Prerequisites
Before proceeding, ensure you have:
- Installed both PnP Modern Search (v4) web part and the CT365 Search Extension on the site with Compliance Tracker 365.
- Added a few news articles targeted to Mandatory terms and the Read Tracker Type.
- Added My Reads to a page to confirm that targeted content is being returned.
📂 Preparing the Template
- In the Site Assets library, create folders:
PnP-SearchCT365(inside PnP-Search)
- Copy the Cards.html file into the CT365 folder.
- Select the file, click the Info/Details panel (top right).
- Expand More details at the bottom of the panel.
- Copy the Path to get a direct link to the file.
⚙️ Configure the PnP Modern Search Results Web Part
- Add the PnP Modern Search Results web part to the page containing My Reads.
- Click Configure > SharePoint Search.
- Navigate to the 4th page in the side panel.
- Click Import/Export → Import settings.
- Copy the content from Cards.json and click Apply.
- Navigate to the 2nd page in the web part panel.
- Paste the copied Path into Use an external template URL.
- Ensure the field is empty before pasting.
- An error may appear at this point — this is expected and normal.
- Republish the page.
🎯 Result
If everything is configured correctly, you will see your targeted unread news articles from the current site displayed on the page.
