Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.


I need to create a Content Search Web part restricted to a specific URL.
I have to show the documents from a list in an other site collection.
Is it possible?
I'm trying but I do not see results.

share|improve this question

1 Answer 1

Just use the path attribute:

path:urlToTheList

In the query

share|improve this answer
    
this is my query: path: "myRoot/my%20site/my%20list/Forms/AllItems.aspx"; but I do not see results :/ –  Nk SP May 26 at 12:43
    
"my list" is a document library –  Nk SP May 26 at 12:48
1  
Well you should not use the /forms/allitems.aspx part, and no encoding –  Robert Lindgren May 26 at 12:49
    
No luck :/ If I copy the path in the browser, I can see the element. The list is in an other site collection, the problem may be there –  Nk SP May 26 at 12:52
    
maybe change the content source? –  Nk SP May 26 at 13:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.