Forum Discussion
Juan M Baena
Feb 11, 2019Iron Contributor
Search String on Site Template
Good Day
We are trying to understand if its possible in using a search query string that could get all Communication Sites and surface them via some of the new modern UI web parts. For example the Highlights web part seems to have a filter where you could use a search string and was wondering if we could somehow leverage that to pick only sites using the Communication site template. Thanks!
2 Replies
So for starters, the communication site template using a TemplateID of SitePagePublishing#0. You could try to create a query to find where Managed Property "WebTemplate" is equal to "SitePagePublishing".
This should return the Communication Sites the user has access to.- Never have tried this, but you could try to create a property bag at the site level and the create a manage property for that property bag and check if it is exposed in the Highlight content webpart