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:



<FieldRef Name=’FileDirRef’ />

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



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

Posted at :


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: