Properly hiding the ContentPlaceHolder TitleInTitleArea on your SharePoint 2010 Master Page

Here is another gotcha for your custom SharePoint 2010 master page.  When you are creating your custom master page, you most likely will want to move some ContentPlaceHolders into an ASP:Panel with the visibility set to hidden.

The TitleInTitleArea place holder should stay in the master page and not within a hidden panel.  Why? When this is removed and you edit a team site page/wiki page then you will receive an error “you must specify a value for this required field”.

If I am not going to use this in my custom master page I add a div tag around the ContentPlaceHolder using a hidden class.

<div class="hidden">
<asp:ContentPlaceHolder id="PlaceHolderPageTitleInTitleArea" runat="server" />
CSS: .hidden { display: none;}

Thanks for reading!

, , , , , , ,