question

SrgioFangueiro-7621 avatar image
0 Votes"
SrgioFangueiro-7621 asked AllenXu-MSFT commented

Sharepoint old classic sites vs modern

Hello all.
We are on a changing from subsites to sites.
We have one subsite called workspace, that serves all teamsites and it has a query on workspace site page like: path:"https://contoso.sharepoint.com/Workspace" contentclass:STS_Web Site<>{Site.URL} UrlDepth<3 and it shows only the teamsites based on permissions that users have access. (Audiance targetting)
My question is: setting up a new sitepage workspaces and after promoting all sites, on highlight content how can I add/or filter the path script to show same sites based on permissions like we have now? Most viewed pages not fits, cannot present content as well.
If anyone can help, i really appreciate

office-sharepoint-online
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AllenXu-MSFT avatar image
0 Votes"
AllenXu-MSFT answered AllenXu-MSFT commented

Hi @SrgioFangueiro-7621,

The screenshot below shows several subsites are displayed on a classic page using content search web part. Per my understanding, are you meaning to display those subsites on a modern page using Highlighted content web part?
74530-image.png
If yes, please take a reference to the following steps:

  • Add Highlighted content web part on a modern page.

  • Click "Edit web part"74616-image.png.

  • Select "Custom query" option.
    74623-image.png

  • Select "All sites" in Source.
    List item

  • Put query script in Query text textbox and click "Apply".
    74702-1.png

  • Enable audience targeting.
    74673-image.png

  • For other customization, please refer to this aricle: Use the Highlighted content web part.

After completing this, Subsites can be displayed on a modern page like what it is on a classic page.
74610-image.png


If an Answer is helpful, please click "Accept Answer" and upvote it.
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.


image.png (7.7 KiB)
image.png (2.3 KiB)
image.png (7.1 KiB)
image.png (9.2 KiB)
1.png (5.7 KiB)
image.png (5.3 KiB)
image.png (16.8 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @SrgioFangueiro-7621,

Is there any update on this issue? I'm looking forward to your reply.

0 Votes 0 ·

@SrgioFangueiro-7621,

I'm checking how things are going on this thread. Please let me know if you would like further assistance. If an answer is helpful, you can accept it as answer.

0 Votes 0 ·

@SrgioFangueiro-7621,

If the issue is resolved, you could accept the helpful answer. It will be beneficial to others in this forum who meet the same issue in the future. Thanks for your understanding.

0 Votes 0 ·