Content Query Web Part in SharePoint Online Modern Communication Site

Tom Molskow 386 Reputation points
2023-09-08T17:08:38.42+00:00

Hello Community!

I am working in SharePoint Online Modern using a Community Site Template. I am trying to use the Content Query Web Part in a Classic Page, and to enable that I've tried to activate the SharePoint Server Publishing Infrastructure feature, but when I do I always get an error. Is this still possible to do in SharePoint Online?

And yes, I know there is the Highlighted Content Web Part, which is a close second to the Content Query Web Part, but my concern is to enable and use the Content Query Web Part.

Alibi question, is there a Community Solution that is equivalent to the Modern Script Editor Web Part except for the Content Query Web Part?

Thanks!

Tom

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2023-09-11T02:26:35.6133333+00:00

    Hi @Tom Molskow,

    Please check if your site is a subsite. The parent site is http://server/sites/topsite
    and the child site is http://server/sites/topsite/subsite1.

    "SharePoint Server Publishing Infrastructure" require a Site Collection level feature when enabled impacts every site in the Site Collection. If you are in a subsite, you can active the feature in the tpsite of the sitecollection.

    Currently there is no direct replacement of Content Query web part available in modern experience out of the box web part. You will have to develop the custom web part on your own. You can develop custom web part for modern experience using SharePoint framework (SPFx).

    1. Overview of the SharePoint Framework
    2. Content Query web part (SharePoint Online-Compatible)

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.