Forum Discussion
Need help in SP Modern Site for searching associated sites on homepage of a HubSite
- Mar 30, 2023
iamajaythakur Instead of using "Sites" in search query, use hub site DepartmentId as mentioned in this thread: How can I search for sites within my hub using PnP Modern Search?
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs
iamajaythakur Instead of using "Sites" in search query, use hub site DepartmentId as mentioned in this thread: How can I search for sites within my hub using PnP Modern Search?
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs
Thank you, it helped me to display all the associated sites on Homepage of Hubsite using PnP - Search Results webpart.
- iamajaythakurApr 06, 2023Copper Contributorganeshsanap sir, Can we have functionality here like below?
If we reload the homepage, PnP results webpart should show all associated sites and if I search a site then it should filter out that site. Current query either shows all sites or it doesn't show any but filter out the site which we search. Can both be done at same time? I didn't find anything that will help me apply condition on the query.