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

Restoring the Navigate Up button with an AdditionalPageHead delegate control


The out-of-the-box master pages from SharePoint 2010 included a breadcrumb control that would allow a user to easily navigate up the current site hierarchy. The out-of-the-box master pages in SharePoint 2013 have hidden this control. We previously accomplished this in a master page in Chapter 3, Branding SharePoint with Custom Master Pages and Page Layouts. In this recipe, however, we will accomplish this with an AdditionalPageHead delegate control. This allows us to restore the button regardless of which master page is being used. The following screenshot illustrates the restored breadcrumb control:

Getting ready

We should have already created our Visual Studio project with the help of the Creating a Visual Studio solution for custom delegate controls recipe of this chapter before starting this recipe.

How to do it...

Follow these steps to restore the navigate up button with a delegate control:

  1. Open the project created...