2

My question is about Sharepoint Server 2013. I have a created a list web part from a Subsite by using Sharepoint Designer to save a Data View Web part of my list and exported it to the Site Gallery. When I go to a different Subsite in the same site collection and try to add this web part I am able to select the web part I created but when I click save I keep getting this error.

enter image description here

However , I can add the web part I created on the same site I exported it from. I cannot figure out what is going on. Through several searches, I have tried the following: Turned Allow management of content types to No. I have inherited permissions from the Parent Site so everyone has the same permission. I have permission to see all so that shouldn't be the problem anyway. Any ideas?? I really need this to work.

2 Answers 2

1

There is another solution for this. Create the webpart with sharepoint designer, or just edit the code that is generated in the page. The, get the WebId of the site that contains the list, and edit the webpart so it contains the following tag, inside the XsltListViewWebPart:

WebId="[your source site webId here]"

To get the webId you will need to connect to the site using powershell and get the WebId by console.

References:

1

It's a normal behavior, you can use the web part on the same site but other sites you can't because the list ID does not exist in the other sites (list scope is per site).


Regarding, displaying a SharePoint list from Parent site in a subsite, you have the below tow options:

  1. Using Data View Web Part. check the details steps in this thread SP 2016 - Display list from Parent site in sub-site

  2. Content Query Web Part as the following :

    • Edit your current Page > Click on Add web Part > below Content Rollup > Add Content Query Web Part .

enter image description here

  • Click to open the tool pane to edit
  • At Query section, > at Show items from the following list: > click browse to browse any list from any site below your site collection.

enter image description here

Although this method will achieve your goal to show a list from another site, unfortunately, it will need some customization (ItemStyle) to show your CQWP as List view, and to can do this check SharePoint Content Query web part like a SharePoint List View


Check the details steps at

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.