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

%3CLINGO-SUB%20id%3D%22lingo-sub-152313%22%20slang%3D%22en-US%22%3EHow%20to%20display%20a%20list%20of%20subsites%20on%20a%20modern%20site%20page%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-152313%22%20slang%3D%22en-US%22%3E%3CP%3EHow%20to%20display%20a%20'list%20of%20subsites'%20on%20a%20modern%20site%20page.%3C%2FP%3E%0A%3CP%3EIn%20classic%20sites%20we%20had%20de%20'Content%20search'%20webpart.%3C%2FP%3E%0A%3CP%3EIn%20the%20modern%20site%20pages%20webparts%20I%20can%20not%20see%20this%20one.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-152313%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESites%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-338437%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20display%20a%20list%20of%20subsites%20on%20a%20modern%20site%20page%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-338437%22%20slang%3D%22en-US%22%3E%3CP%3EWill%20there%20be%20a%20Modern%20Content%20Search%20Webpart%3F%20Highlighted%20Content%20does%20not%20allow%20to%20search%20for%20objects%20ot%20type%20Site.%20That%20would%20be%20easy%20to%20add%2C%20would%20it%20not%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-152375%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20display%20a%20list%20of%20subsites%20on%20a%20modern%20site%20page%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-152375%22%20slang%3D%22en-US%22%3EWell%2C%20bearing%20in%20mind%20there%20is%20not%20a%20modern%20WebPart%20that%20is%20a%20full%20replacement%20of%20the%20Content%20By%20Search%20WebPart%2C%20what%20you%20can%20do%20is%20just%20to%20create%20your%20own%20WebPart%20for%20this...we%20have%20done%20it%20for%20a%20customer%20and%20this%20is%20something%20that%20a%20SharePoint%20Developer%20can%20build%20quite%20fast.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-152363%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20display%20a%20list%20of%20subsites%20on%20a%20modern%20site%20page%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-152363%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20is%20not%20available%20on%20a%20'Modern%20Site%20Page'%20%3A(%3C%2Fimg%3E%3C%2FP%3E%0A%3CP%3EOn%20a%20classic%20page%2C%20I%20can%20add%20the%20'Content%20Search%20webpart'%2C%20but%20not%20on%20a%20Modern%20Site%20Page.%3C%2FP%3E%0A%3CP%3EMaybe%20a%20filter%20to%20sites%20in%20the%20webpart%20in%20Modern%20Site%20Pages%20'marked%20content'%20%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-152357%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20display%20a%20list%20of%20subsites%20on%20a%20modern%20site%20page%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-152357%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20might%20be%20able%20create%20a%20blank%20web%20part%20page%20on%20sub%20site%20and%20add%20the%20custom%20list%20web%20part%20to%20it%20and%20then%20use%20the%20page%20viewer%20web%20part%20on%20parent%20site%20to%20display%20the%20sub%20site.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-832743%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20display%20a%20list%20of%20subsites%20on%20a%20modern%20site%20page%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-832743%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F2904%22%20target%3D%22_blank%22%3E%40Andr%C3%A9%20Maas%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20the%20link%20for%20your%20reference%20-%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsocial.technet.microsoft.com%2Fwiki%2Fcontents%2Farticles%2F53252.how-to-display-a-list-of-sub-sites-on-a-modern-site-page.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsocial.technet.microsoft.com%2Fwiki%2Fcontents%2Farticles%2F53252.how-to-display-a-list-of-sub-sites-on-a-modern-site-page.aspx%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-833060%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20display%20a%20list%20of%20subsites%20on%20a%20modern%20site%20page%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-833060%22%20slang%3D%22en-US%22%3EThanks.%20works%20great.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1052326%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20display%20a%20list%20of%20subsites%20on%20a%20modern%20site%20page%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1052326%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F401694%22%20target%3D%22_blank%22%3E%40DarthWader%3C%2FA%3EI%20found%20your%20link%20a%20bit%20helpful%20but%20in%20my%20case%20it%20shows%20all%20the%20sites%20in%20the%20collection%20or%20hub%20and%20not%20only%20the%20sub%20sites%20on%20the%20current%20site.%20Maybe%20a%20query%20is%20an%20option%20but%20then%20I'm%20not%20too%20familiar%20with%20SharePoint%20to%20know%20what%20to%20look%20for.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20now%20I've%20slected%20the%20sites%20manually%20using%20the%20'sites'%20web%20part.%20That%20will%20be%20a%20problem%20however%20because%20we%20expect%20many%20more%20sub%20sites%20to%20be%20created.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

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.

7 Replies

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. 

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.

Will there be a Modern Content Search Webpart? Highlighted Content does not allow to search for objects ot type Site. That would be easy to add, would it not?

Thanks. works great.

@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.