Forum Discussion
Any way to exclude Templates folder from Highlighted Content Web Part?
Hi DavidWexelblat
You could ditch the "Highlighted Contents" webparts and then create a new view on the "Site Pages" library. Exclude the content type "Folder" and sort that view by the "modified date" descending.
As templates are stored in the "templates" folder in that document library these will not be visible as we excluded folders from the view.
Instead of the "Highlighted Contents" webpart add a "Document Library" webpart and select the "Site Pages" Library and your new view. Disable the "Show command bar" and "Show See all button" toggles.
But that does not look like the "Hightlighted Contents" webpart.
If you don't like the list look of that webpart, you can go back to the view settings and switch the view type from list to tiles. Or you need to create a View Formatting that looks like the "Hightlighted Contents" webpart like this sample https://github.com/pnp/List-Formatting/tree/master/view-samples/document-library-gallery-card
Best Regards,
Sven