Hub Site
3 TopicsModifying Hub navigation\Mega Menu Font Size
Hi, We have a hub site as a main intranet with several associated sites. The ask from customers is to make the hub navigation bold or larger font. Is there a way to modify font size for hub navigation? Anyway using Application Customizers? We do not want to create our own control as it should be manged through the out-of-the box navigation settings. Any quick modification that we can do?5.6KViews1like2CommentsSPFx Extension: Retrieve associated hub site
Hi all, I'm fairly new to SPFx, so please be kind. I'm trying to achieve a fairly simple extension that works a little bit like a breadcrumb. Basically, it's a list containing three items: > Title of the page you are currently on > Site collection of that page > Associated Hub site For the time being, that has to be enough. I've managed to get the page and site collection fairly easily by using the pageContext. However, I am struggling to get the associated Hub site as well. I have been able to generate the Hub site id (by using the legacyPageContext), but now I am stuck. Can I retrieve a site by its ID? And can I select the Title of that page? Please forgive me if this is a really stupid question. As I said, I'm just dipping my toes into the SharePoint development world. PS: Any other ideas that would get me a similar result are appreciated 🙂1.7KViews0likes0CommentsSharePoint Online Hub Search - How do you call the search API and limit results to content contained
I am writing a web part that is surfacing all news pages on sites associated to a hub which have been tagged with a particular category (through page properties). How do I limit the results of my call to the Search API to only include content from sites associated to the hub? Do I have to first make calls to determine the sites associated to the hub (as per Mikael Svenson's post: https://www.techmikael.com/2018/04/working-with-hub-sites-and-search-api.html) and then use them in my query for news items, or is there an easier way? I cannot see any "Result Sources" that have been created by creating the hub, and I don't really want to have to manually maintain one as sites are associated/disassociated to the hub Thanks!2.4KViews0likes1Comment