Document Library viewable on subsites
I have a document library on a top level site that needs to be viewable on a number of subsites. I need the full doc library functionality however so CQWP doesn't really work for me.My approach has been to add the document library as a dataview on the subsite master page. I have added <WebPartPages:DataFormParameter Name="WebUrl" ParameterKey="WebUrl" PropertyName="ParameterValues" DefaultValue="/"/> to the spdatasource for the dataview so that the datasource is "gettable" on the subsite.My issue is that when I attempt to view the subsite I then get Object reference not set to an instance of an object. Is my approach valid or am I totally off track with what I am trying to do?Thanks,Richard
February 5th, 2010 8:12pm

Hi Richard,If you need full document library functionality, take a look at this.http://www.professionalsharepoint.com/dle
Free Windows Admin Tool Kit Click here and download it now
February 5th, 2010 8:25pm

I have a couple of questions: 1. What do you mean by using a sub site master page? The master page is stored in _catalogs/masterpage folder of the top level site or that of the sub site? Do you have the publishing feature enabled for both top level site and its sub site? 2. How do you add the Data View on the sub site master page? Did you create to another library in SharePoint Designer? For the error message Object reference not set to an instance of an object, please check if the LISTID DataFormParameter point to the Document Library on the top level site.
February 10th, 2010 5:24am

thanks for the replies, this was the approach I ended up using and it works a treat. http://techtrainingnotes.blogspot.com/2009/03/sharepoint-one-library-multiple-sites.html
Free Windows Admin Tool Kit Click here and download it now
March 6th, 2010 2:17am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics