The following forum(s) have migrated to Microsoft Q&A: All English SharePoint forums! Visit Microsoft Q&A to post new questions.
Hi Friends,
Is there a way to display all the pages under "Site Pages" library using content search web part?
Hi
you can set search query as below -
{searchTerms} path:http://<site URL>/sitepages - to perform search on site pages library based on search term
or
simply add path:http://<site URL>/sitepages - to get all pages under site pages library
Hope it helps.
You could either use a "contains" clause like:
Path:http://site_name/sitepages/
Or if you are trying to display pages with a specific content type
You might just say
ContentType=Content_type_name
Thanks
Sudeep