extension
3 TopicsSPFx 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.7KViews0likes0CommentsSPFx on a Team Site Homepage Cannot Get Taxonomy Data
Hi, I have an SPFx webpart and an SPFx extensions that getting data from Taxonomy Term Store. Both of them are working well on all pages (Site Content page, Library page, Site page, etc.) except on a Team Site Homepage. I've tried several approaches to get the Taxonomy data in the SPFx code: Add the references to the SharePoint JSOM in the config.json (https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/basics/add-an-external-library) Load SharePoint JSOM in the code (following example from Microsoft's repo: https://github.com/SharePoint/sp-dev-fx-webparts/blob/dev/samples/knockout-taxonomy/src/webparts/termSetRequester/data-helpers/DataHelperSP.ts, even the webpart example doesn't work on a Team Site Homepage) Both of them couldn't get taxonomy data on a Team Site homepage. It's failed on context.executeQueryAsync(...). Is there anyone that has done this before? Or has any workaround idea for this situation? Thanks1.6KViews0likes0CommentsSPFx Extensions Examples with Angular JS (or) Angular 4
Hello Everyone, I am trying to create a SPFx extension with Angular JS (or) Angular 4 framework to have the custom Top navigationrendered in SP Online by reading the navigation terms from Term Store. I am not able to find any related examples in SPFx Extensions with Angular. Can i get any pointers for this. Thanks for the support. Thanks & Regards, Bhanu2.8KViews0likes2Comments