Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Why do we have PlaceHolderPageTitleInTitleArea and PlaceHolderPageTitle in master page.

What is the difference between the two?

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

The only difference would be where your master page places them. Out of box master pages usually have the PlaceHolderPageTitle in the head section - title tag.

<head>
   <title><asp:ContentPlaceHolder id="PlaceHolderPageTitle" runat="server"/></title>
</head>

PlaceHolderPageTitleInTitleArea is instead used in the title table, so it is inside the actual page body.

<table class="s4-titletable" cellspacing="0">
   <tbody>
      <tr>
         <td class="s4-titlelogo">....</td>
         <td class="s4-titletext">
            ...
            <h2>
            <asp:ContentPlaceHolder id="PlaceHolderPageTitleInTitleArea" runat="server" />
            </h2>
            <div class="s4-pagedescription" tabindex="0" >
               <asp:ContentPlaceHolder id="PlaceHolderPageDescription" runat="server"/>
            </div>
            ...
        </td>
        ....
     </tr>
  </tbody>
</table>
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.