Forum Discussion

Brent Ellis's avatar
Brent Ellis
Silver Contributor
Aug 03, 2018

Prevent a Header/Footer from loading when embedding in Microsoft Teams?

Is there anyway to prevent an #SPFX extension from loading in the Header and Footer placeholders when the SharePoint page or list has been embedded in Microsoft Teams.  I'm mainly interested in the content showing inside of the Team, not the header (which is an enterprise mega menu).

 

Steps to recreate:

- Have a SPFX extension that loads content into a Header

- Add a tab to Microsoft Teams, select Website

(note i am not selecting SharePoint because that is limited to only content within the SharePoint site connected to that Group/Team, this is a more public comm site page somewhere else)

- Paste the link to a SharePoint page or list (where the header is loaded), and add tab

 

I'm curious if something I could put in the code would detect it, or if there is some kind of query string that we could use (kind of like the old school Focus on Content)?

No RepliesBe the first to reply

Resources