Forum Discussion

André Maas's avatar
André Maas
Brass Contributor
Feb 05, 2018

How to display a list of subsites on a modern site page

How to display a 'list of subsites' on a modern site page.

In classic sites we had de 'Content search' webpart.

In the modern site pages webparts I can not see this one.

8 Replies

  • DarthWader's avatar
    DarthWader
    Copper Contributor

    André Maas 

    Here is the link for your reference - https://social.technet.microsoft.com/wiki/contents/articles/53252.how-to-display-a-list-of-sub-sites-on-a-modern-site-page.aspx

    • SPINConsulting's avatar
      SPINConsulting
      Copper Contributor

      DarthWader Previous link was a 404. This is the link:

      https://learn.microsoft.com/en-us/archive/technet-wiki/53252.sharepoint-how-to-display-a-list-of-sub-sites-on-a-modern-site-page

    • bryan87's avatar
      bryan87
      Copper Contributor

      DarthWaderI found your link a bit helpful but in my case it shows all the sites in the collection or hub and not only the sub sites on the current site. Maybe a query is an option but then I'm not too familiar with SharePoint to know what to look for.

       

      For now I've slected the sites manually using the 'sites' web part. That will be a problem however because we expect many more sub sites to be created.

  • Edwin Arlington's avatar
    Edwin Arlington
    Copper Contributor

    You might be able create a blank web part page on sub site and add the custom list web part to it and then use the page viewer web part on parent site to display the sub site. 

    • André Maas's avatar
      André Maas
      Brass Contributor

      This is not available on a 'Modern Site Page' :-(

      On a classic page, I can add the 'Content Search webpart', but not on a Modern Site Page.

      Maybe a filter to sites in the webpart in Modern Site Pages 'marked content' ?

       

      • Well, bearing in mind there is not a modern WebPart that is a full replacement of the Content By Search WebPart, what you can do is just to create your own WebPart for this...we have done it for a customer and this is something that a SharePoint Developer can build quite fast.

Resources