Custom SharePoint Solutions With HTML and JavaScript: For SharePoint 2013 and SharePoint Online by Brandon Atkinson

Custom SharePoint Solutions With HTML and JavaScript: For SharePoint 2013 and SharePoint Online by Brandon Atkinson

Author:Brandon Atkinson [Atkinson, Brandon]
Language: eng
Format: epub
Tags: Computers, Programming, General, Enterprise Applications, Document Management, Collaboration Software
ISBN: 9781484205440
Google: -4cnCgAAQBAJ
Publisher: Apress
Published: 2015-03-13T20:38:14+00:00


Click Add to place the web part on the page. The web part will display search results immediately. The default search for the Content Search Web Part is called Recently Changed Items and it displays just that—a list of recently changed items. In this case, the list is comprised of the documents that were recently added to the Documents library, as shown in Figure 6-16.

Figure 6-16.The Content Search Web Part using the Recently Changed Items search

At first glance, this web part is doing almost what we wanted from the beginning, which is to show only PDF documents. The fact that the two PDF documents are shown in this web part is only by the luck of the draw. For instance, depending on the order in which you uploaded your documents, you may see two Word documents at the top. We’ll update the web part to use the custom result source that we created in the previous section to ensure that we only get PDF documents in the results. Place the Content Search Web Part into Edit mode, and in the Properties accordion pane, click the Change Query button, as shown in Figure 6-17.

Figure 6-17.Accessing the query settings of the Content Search Web Part



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.