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 ...

Get SharePoint 2013 WCM Advanced Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.