locked
Content search web part RRS feed

  • Question

  • Hi Friends,

    Is there a way to display all the pages under "Site Pages" library using content search web part?

    Thursday, April 30, 2015 6:05 AM

Answers

  • 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.

    Thanks,
    Danny

    Please remember to Mark as Answer if it works or vote of it is helpful

    Thursday, April 30, 2015 9:32 AM

All replies

  • 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.

    Thanks,
    Danny

    Please remember to Mark as Answer if it works or vote of it is helpful

    Thursday, April 30, 2015 9:32 AM
  • 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

    Thursday, April 30, 2015 10:49 AM