locked
Document Library viewable on subsites RRS feed

  • Question

  • 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

    • Moved by Mike Walsh FIN Friday, February 19, 2010 5:03 AM admin q - normal doc lib (From:SharePoint - Enterprise Content Management (pre-SharePoint 2010))
    Friday, February 5, 2010 5:12 PM

Answers

All replies

  • Hi Richard,

    If you need full document library functionality, take a look at this.

    http://www.professionalsharepoint.com/dle




    • Marked as answer by GuYuming Saturday, March 6, 2010 4:11 AM
    Friday, February 5, 2010 5:25 PM
  • 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.

     

    • Marked as answer by GuYuming Friday, February 12, 2010 3:49 AM
    • Unmarked as answer by Richardbq Thursday, March 4, 2010 9:39 PM
    Wednesday, February 10, 2010 2:24 AM
  • Hi Richard, one option is to add the Document Library as a Data Source to your sub-site, and then you can use it without restrictions in your subsite pages. This link may be useful  Add a SharePoint list or library as a data source
    • Proposed as answer by Andres F Soler Thursday, February 18, 2010 11:25 PM
    • Marked as answer by GuYuming Saturday, March 6, 2010 4:10 AM
    Thursday, February 18, 2010 11:24 PM
  • thanks for the replies, this was the approach I ended up using and it works a treat.


    • Marked as answer by GuYuming Saturday, March 6, 2010 4:10 AM
    Friday, March 5, 2010 11:17 PM