Share a List View Between Sites in SharePoint 2010
Create a Web Part from a List View
- Create your view
- Go to SharePoint Designer 2010 and navigate to the list > your view
- Click on the XSLTListViewWebPart to highlight it – this will make the List View Tools contextual menu appear in SPD
- In the List View Tools section in the top ribbon, click on the Web Part tab (NOTE: it may take a moment for the section and tabs to appear, usually the view will have to render in SP Designer first)
- In the Save Web Part section of the tab, click on “To Site Gallery”
At this point you can set properties, for example you can change the name if you would like to NOTE: renaming the web part (especially with special characters) seems to sometimes cause issues. If you are having difficulty, try to create a new web part and do not change any settings until it is working properly in the site where you want it!
- Click OK
- In the next popup you MUST click yes – this will allow information to be seen from this site in other sites
Add your new Web Part to a page
- Create a page or go to one where you would like to add the web part
- Go to the page on the SharePoint Website
- Click Page tab > edit
- In the section you would like to inset the custom list view web part, click “Add a web part”
- In the ribbon, under categories, select Miscellaneous
- Under web parts, select you web part (remember what you named it if you changed the name)
- If your web part does not appear or you get an error, try again and check the naming as described above
Note: You can also create pages and add web parts through SP Designer!
Warning! If you edit the list or library settings to allow custom content types (Library Settings > Advanced Settings > Content Types > Allow Management of content types? > Yes) , when you add the web part to a page it will break! You will need to remove the webpart for the page to work again. If you can, change the settings back to “No” and add the web part again.