Use parent document library in a subsite

Hi!

When you add a web part on a site you only see lists and libraries from the current site. Is there any way to see lists and libraries from other sites in this view

Or can you do this in another way

Regards,
Johan



Answer this question

Use parent document library in a subsite

  • JKountouroglou

    When I try this in Moss 2007, the export option does not appear when editing Document Libraries; it does however appear on other webparts such as Content Query webparts etc.


  • Montana47

    Look at this post :-http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1887699&SiteID=1&mode=1

    its a similar discussion


  • killerless

    Thank you for your answer! This is getting closer and closer to a solution!

    The problem I'm facing now is how to add the connected libraries and lists as Web Parts. When you add a Web Part on a page you get a list of libraries and lists created in the same site. But i don't get the same options for the connected libraries and lists (they don't show up at all in the list of Web Parts).

    Can this be done

    I've succefully added a DataFormWebPart to show information from another sites libraries and lists, but it doesn't behave or look like the "regular" Web Parts with information from the current site - and that is what I'm trying to achieve.

    Hope you understand what I mean.

    Thanks again!

    /Johan


  • J. Wind

    Thanks for the post.

    But i can't get to export a dataview webpart i created using SPD when i view it using the browser

    I don't get to see any chrome dropdownlist menu.

    If you have done this please elaborate more


  • Heinz09

    There is also another way to accomplish this which is by using SharePoint designer. What you can do is by using SharePoint Designer you can Add another SharePoint site to the Data Source Library. By doing this you will have access to all of the lists of that site and that way you can drag and drop it to your page you wish to display the contents of the document library.

    How to add another SharePoint site to the Data Source Library

    1. If the Data Source Library isn't visible, on the Task Panes menu, click Data Source Library.
    2. At the bottom of the Data Source Library task pane, click Connect to another library.
    3. In the Manage Library dialog box, click Add.
    4. In the Collection Properties dialog box, in the Display name box, type a name for the site.
    5. Click Browse, browse to and select the Web site that you want, and then click Open.

      Note At this point, you may be prompted to enter your user name and password. You must have permissions to edit the selected site in Office SharePoint Designer 2007.

    6. Click OK twice.

      In the Data Source Library task pane, you now see sections showing data sources both from the current site and from the site that you just added. In this example, because both sites are located on the same server, the SharePoint lists and libraries from the other site are also available in the current site.

    Hope this helps

    Coskun Cavusoglu

    www.sharepointblogs.com/gnarus



  • Itzik Katzav

    What you can do is export the web part that you added to the site and then upload the exported webpart to the webpart gallery.

    To Export: So create the dataview webpart, then view that page in a browser. Click on edit page and click on the edit button on the webpart menu. Then click on the modify shared webpart and you'll see export.

    To add it to the gallery: Click on Site settings and under galleries you'll see webparts. (Do this at the top level site for your site collection. Then it will appear on all sites)

    Hope this helps,

    Coskun Cavusoglu

    Http://www.sharepointblogs.com/gnarus



  • cablehead

    In a site you can only view the web parts available within the site's scope, which means the current site and its subsites.


  • hayward_ke

    Thats right Andy. Thats a good question and i have noticed that also.
    Although Ishai a good Aussie blogger has some info here at:-

    http://www.sharepoint-tips.com/2007/05/sharepoint-designer-article-2-creating.html

    But i haven't tried it yet.Because what 'm trying to do is connecting to an other lib using SPD and using Dataview to display it

    But when i display the page on the browser i can't seem to export it.


  • James Wyatt

    Yes, You can use the SharePoint object model and get any list you want in the sharepoint site and webs as long as you have permission.

    http://msdn2.microsoft.com/en-us/library/microsoft.sharepoint.splist.aspx

    Objects like SPContext, SPWeb, SPList, SPView etc... can be very handy.

    Hope this helps.



  • MikeRt

    Hello Andy,


    Were you able to figure it out I'm having the same issue as you and wanted to see if you can help. I'm trying to display sub site content on our main site via web parts or thru the quick launch.

    Thanks in advance for your help.
    Juan


  • Use parent document library in a subsite