I was wondering what techniques there are to get a chunk of html / js injected onto each and every page in 365? Here’s the solutions that come to my mind :
- Add the snippet onto all the master pages.
- Add a web part (containing the snippet) onto each and every page.
- Feature with custom action (Not tested!)
Any other tricks or techniques?
In addition to getting code working on SharePoint Online, what about Outlook, Yammer and the other Office apps ?
The custom action with CSOM is the only way to go, try to avoid using features seeing as the feature framework is on the block…Â
Hi Mark,
For second step, instead of adding webpart to each page, i’ll prefer to add shared webpart to page layout and use it to create pages or change page-layout of existing one.
Thanks,
Deepak Chawla
That link is just for sign in and access panel. Don’t see how that would work with all the other pages in a SharePoint site?
You can use Office 365 Navigational links and modify existing js file or inject js file. Please have a look at this link for more detail.
http://technet.microsoft.com/en-us/library/dn532270.aspx