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 meta tags to pages from custom library fields with an AdditionalPageHead delegate control


One of the common search engine optimization techniques used is adding the META tags to the HEAD element of a page to include additional information about the page. These META tags can include author information, keywords, a description, copyright information, and so on. For sites where this information is the same for every page, we can simply add the META tags to the master page. However, for sites that require different information for each page, we can use an AdditionalPageHead control to dynamically add the META tags.

In this recipe, we will add the META tags to the HEAD element of pages that have specific list item fields.

Getting ready

We should have already created our Visual Studio project in the Creating a Visual Studio solution for custom delegate controls recipe of this chapter before starting this recipe. In addition, on the Pages library we are testing this recipe with, we should have...