How do I filter a document library view to show the contents of a subfolder?


With SharePoint Designer you can edit the CAML of your XSLT List View.

If you set the Scope attribute of the View element to Recursive or RecursiveAll, which returns all Files and Folders, you can filter the documents by FileDirRef:

<Where>

<Contains>

<FieldRef Name=’FileDirRef’ />

<Value Type=’Lookup’>MyFolder</Value>

</Contains>

</Where>

This returns all documents which contain the string ‘MyFolder’ in their path.

Posted at : http://stackoverflow.com/questions/295448/sharepoint-how-do-i-filter-a-document-library-view-to-show-the-contents-of-a-su

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: