Book Image

SharePoint 2013 WCM Advanced Cookbook

By : JOHN CHAPMAN
Book Image

SharePoint 2013 WCM Advanced Cookbook

By: JOHN CHAPMAN

Overview of this book

Table of Contents (19 chapters)
SharePoint 2013 WCM Advanced Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Adding Office 365-style drop-down menus to suite bar links


SharePoint on Office 365 includes additional links related to Office 365 services in the suite bar, including a drop-down menu of links. Standard installations of SharePoint include the CSS styles and basic JavaScript required to handle these Office 365 drop-down menus. They do not, however, include a way to utilize the styles and JavaScript. The following screenshot illustrates how the drop-down menu looks on Office 365:

In this recipe, we will add a drop-down menu using the provided CSS styles and a bit of custom JavaScript of our own using the delegate control we created in the previous recipe. The JavaScript code provided out-of-the-box is designed to only work with Office 365. We will use a modified version of the methods from the out-of-the-box JavaScript to work with our custom drop-down menu.

Getting ready

For this recipe, we should already have the delegate control created in the Customizing the suite bar links with a SuiteLinksDelegate...