Display library/list on different Site Collection using Page viewers

Display library/list on different Site Collection using Page viewers

Summary: Using a page viewer, you can display a library or list view in another site or site collection.

Instructions

  1. Create a view on the library/list you want to display in another location. Filter, group and format the view as needed.
    Optional: If the view is grouped, add Remove group Headings to the view. See Remove Group Headings post
  2. To remove the left navigation and top link bar from the view. Save the below script in a text file with the file extension .txtScript:
    <style>”Files” class=”ms-cui-tt ms-cui-ct-first” id=”Ribbon.Document-title” { DISPLAY: none }{height: 0px;}li title=”Library” class=”ms-cui-tt ms-cui-ct-last” id=”Ribbon.Library-title” { display : none; }.ms-dialog #globalNavBox{height:0px}
    </style>
  3. Upload the file to Site Assets or Site Collection Documents.
  4. Add a content Editor web part to the library/list view.
  5. Edit the web part and add the link to the script file at the top of the editing ribbon
    Note: To test that the view is displaying properly without the left nav and top link bar, add ?IsDlg=1 to the end of the URL.
  6. Navigate to the webpage where you want to display the library/list. Add a Page Viewer web part to the page
  7. Edit the page viewer web part. Add the link to the view created in step 1 in the Link box
  8. At the end of the URL add ?IsDlg=1
    Note: The height of the page viewer may need to be set to accommodate all the content