SharePoint Config

Ari Bakker's thoughts on customising and configuring SharePoint

Archive for the ‘SPDataSource’ tag

Displaying files from a specific folder using SPDataSource

without comments

This is a short post to show how you can use the SPDataSource to display items from a specific folder in a SharePoint document library. While the other parameters are fairly well documented on MSDN this isn’t very clear. Generally I don’t recommend the use of folders to separate data, I prefer a metadata based approach. In some cases, however, it makes sense such as when you need to manage permissions or approval for a group of documents (especially in SharePoint 2007 where you don’t have document sets). Looking at the parameters we can use (as shown below) to identify and locate the data it would appear that passing the name of the folder to the RootFolder property would achieve this. Continue reading Displaying files from a specific folder using SPDataSource »

Written by Ari Bakker

November 21st, 2010 at 4:17 pm