I have a web application that contains two site collections(team site + enterprise wiki), with the following URLs:-
Now I need to display the latest 10 wiki pages from the enterprise wiki site collection(according to the modified date) inside the team site. So I read that using Content search web part allow for cross-site content query.
Currently I added a new content search web part , inside my team site, and I click on “change query” button. But I am not sure how I can reference the enterprise wiki site collection's wiki page library and to specify that I need to get the latest 10 wiki pages , inside the following dialog:-
- I tried the following for the "Restrict by app" i chose "Do not restrict by app".
- then i switch to advance mode , but i can not find a way to specify the site collection URL :-
Basically this partially worked for me, I provide the following settings inside the “Build Your Query” dialog:-
From the “Select a Query” I defined the following:- “items matching content type(system).”
Restrict by app : “Do not restrict results by app”
Restrict by content type “Enterprise Wiki Page”.
This showed all the sites, lists and even pages are based on the “Enterprise Wiki Page” content type.
But I am facing these problem:-
The above setting showed only the sites,lists and pages matching the “Enterprise Wiki Page” content type, that exists on another web application, and not that exists inside the current web application.
To test the web part , I got the following results, But I was not able to add additional info for the items such as created by, modified by ,etc.
Also there is no way to sort the wiki pages by the modified date, as in the Sorting tab inside the “Build Your query” dialog I cannot find the “modified” inside the Soft by list