Posts

Showing posts with the label javascript

How To Embed Slack On A SharePoint Page

This isn't going to be my cleanest blog post or code... Here's where you go to get the URL for the 'Get Messages' section of the code: https://api.slack.com/methods/channels.history/test Here's where you go to get the URL for the 'Get User' section of the code: https://api.slack.com/methods/users.info/test CompanyName is the name you signed up for in your Slack URL The rest you should be able to paste into a Script Editor web part -------------------------------------------------- <link rel="stylesheet" type="text/css" href="https://a.slack-edge.com/edd25/style/rollup-slack_kit_legacy_adapters.css"> <link rel="stylesheet" type="text/css" href="https://a.slack-edge.com/a225c/style/rollup-client_base.css"> <link rel="stylesheet" type="text/css" href="https://a.slack-edge.com/4944c/style/rollup-client_primary.css"> <link rel="styl...

Issue with Embedding Yammer Feed in SharePoint 2010

Image
On the 14th of May 2015, Yammer deployed an update to their Embed Yammer Feed script that stopped any Yammer Feeds on SharePoint 2010 from working.  In our case, the Yammer Feed got stuck on 'Loading...' This error that is causing the Yammer Feed to fail to load is: Object doesn't support property or method 'forEach' .  yam-platform-feed-57f4f449766511e4f91eb519a39b2781.js, line 480 character 19099 The reason this is happening is because SharePoint Master pages have a line of code which forces all Internet Explorer Browsers to run in IE8 Compatibility Mode.  This is done to ensure all the ribbon & SharePoint functionality continues to work on new browsers. The line of code in question:  <meta http-equiv="X-UA-Compatible" content="IE=8"/> Hint: don't just remove this line of code!  you'll cause yourself a headache. The line that Yammer & Microsoft are taking is that if you plan to stick to SharePoint 2010, th...

SharePoint 2013 - Displaying Multiple Rows of Links w/ Promoted Links Web Part

If you're like me and needed to have quite a few tiles in your Promoted Links Web Part, this should come in handy. I've seen options to install custom solutions, and i've seen options to add a javascript file to the web part to force it to go to a new line. Custom solutions?  meh. Seperate 76kb javascript file?  meh. Use what you've been given my friends; and make it simple for your siblings to see how it works. It's not entirely a simple solution, but when completed I think it is the most elegant/clean solution.  Create two Promoted Links Web Parts underneath each other and use two separate Tile Views to display everything you need.  The only way I could find to create another Tile view was to use SharePoint Designer. Navigate to list in SharePoint Designer 2013 Create new view Copy CAML Query from original Tile View to new Tile view.  Copy This Bit (Make sure you keep the old view name, display name, url): <XmlDefinition><View Name=...

SharePoint 2013 - Hide Root Node Link in Global Navigation using CSS

The other solutions I've found regarding this involve javascript/jquery.  Was unable to find any CSS that resolves the issue nicely. This seems to have resolved the issue for me so far without compromising any other areas of the site.  It hides the initial link and then goes back to displaying the rest of the navigation as per normal: <style type="text/css"> .ms-core-listMenu-horizontalBox li.static > a{ display: none !important; } .ms-core-listMenu-horizontalBox li.static > ul a{ display: block !important; } </style> Liked this post?  Check out my other posts regarding Global Navigation here: What Should Be Allowed To Go I n Global Navigation? The Best OOTB Cross-Site Navigation Solution for SharePoint 2013/2016/Online