Show listview webpart from parent site on subsite in same site collection


Quick no-code Tip - About show listview webpart from parent site on subsite in same site collection.

All you have to do is save your list as a Web Part and then add the Web Part to any other page on your site. It’s surprisingly easy to do and doesn’t require any code. In the following example, I’ll assume you are working with a typical customer list.

Part 1: Save the List View to a Web Part file

  1. In the browser, go to the list and display the default view.
  2. To open the list in SharePoint Designer, in the ribbon, on the List tab in the Manage Views group, click the arrow next to Modify View, and then select Modify in SharePoint Designer (advanced).
  3. In SharePoint Designer, position the insertion point on any part of the list.
  4. Do one of the following:
    • If you have contribute permission and want to save the Web Part as a file, in the ribbon, click the Web Part tab, and in the Save Web Part group, click To File, click Save, enter a meaningful Web Part filename, such as Customers.webpart, and then click Save.
    • If you have site-level permissions and want to add the Web Part to the site Web Part gallery, in the ribbon, click the Web Part tab, and in the Save Web Part group, click To Site Gallery, click Save, enter a meaningful Web Part filename, such as Customers, and then click OK.
  5. When SharePoint Designer displays the following message:
  6. Click Yes. This ensures the list is accessible from any site of the current site collection.

    Part 2: Add the Web Part to another page
    Go to the site you want to add the Customers Web Part to, click Site Actions, click New Page, enter Customers List in the New page name box, and then click Create. Do one of the following :
    Add the Web Part from a file
      1. Under the Editing Tools tab group, click the Insert tab, and then in the Web Parts group, click Web Part.
      2. To make the Customers.webpart available to the page for insertion, click the arrow next to Upload a Web Part, click Browse, locate and select the Customers.webpart file created in Step 4 of Part 1, click Open, click Upload.
      3. Under the Editing Tools tab group, click the Insert tab, and then in the Web Parts group, click Web Part.
      4. Under Categories, click the newly created Imported Web Parts folder, under the Web Parts section, select Customers.webpart, and then under the About the Web Part section, click Add.
    • Add the Web Part from the Web Part Gallery
      1. Under the Editing Tools tab group, click the Insert tab, and then in the Web Parts group, click Web Part.
      2. Under Categories, click Miscellaneous folder, under the Web Parts section, select Customers.webpart, and then under the About the Web Part section, click Add.

  1. If you see an Information dialog box, entitled, Message from Web Page, ignore it, and then click OK.
  2. Click the arrow next to the Web Part menu, and then click Edit Web Part.
  3. In the Tool Pane, consider doing the following:
    • If you want a different view than the default view to display, under Selected View, select the view you want.
    • If you want to remove the Add New Item link at the bottom of the list, Under ToolBar Type, click No Toolbar.
    • If you want the List View Web Part to look like a regular list, In the Appearance section, under Chrome Type, click None.
  4. Click OK.
  5. In the ribbon, click the Page tab, and then click Save & Close.


7 comments:

Samiksha Phogat said...

I tried this method to show a list from site collection to a subsite
- Sucessfully done it in SP2010
- In SP2013 - got error while inserting the webpart to subsite.
Error message is : "The page you selected contains a list that does not exist. It may have been deleted by another user"

Teresa said...

I am getting the same error as Samiksha. Any way to resolve the error for SP2013?
The page you selected contains a list that does not exist. It may have been deleted by another user

Ranjith Kumar said...

any work around for sp2013

Mohit said...

Not working for SP2013

Heater said...
This comment has been removed by the author.
Heater said...

If your are getting a "list does not exist" error, try this:
http://zepeda-mcmillan.blogspot.ca/2011/08/cross-site-web-xsltlistviewwebpart.html
Basically you need to update the WebId in the .webpart file to point to the web that your list exists on. Otherwise the webpart will look for the list on the current web.

Gerry Brimacombe said...

This is exactly what I need, but I am stumped at "save as web part". I am using Office 365, and do not see the Web Part tab or the Save as Web Part buttons in SPD 2013. Am I meant to be in Code View viewing the page?

Post a Comment

Popular Posts