1

I am using the Oslo Masterpage, and it has an AdditionalPageHead control, which I'd like to use. I'm using the footer currently and I'd like to add the header but I don't know how. I added the following for the footer:

<SharePoint:AjaxDelta id="DeltaPlaceHolderFooter" BlockElement="true" runat="server">
<%--SharePoint:DelegateControl runat="server" ControlId="PageFooter"  AllowMultipleControls="false" /--%>
<div id="footer" class="noindex">
   <p style="text-align:center;">Some fancy footer is displayed here.</p>
</div>
</SharePoint:AjaxDelta>

Can anyone guide me on what to add for the header to appear on my pages?

Thank you.

5

Since AdditionalPageHead is a Content Place Holder, you can use respective asp:Content control as shown below:

<asp:Content runat="server" ContentPlaceHolderID="PlaceHolderAdditionalPageHead">
    <!-- Add stuff here -->
</asp:Content>

You can add more Content Place Holders anywhere in the MasterPage and use them in the Pages.

  • Arsalan can we use this multiple times (i.e. lf we build a conditional statement in the custom page layout?) – klewis Jan 11 '16 at 17:33
  • Try that if it works we can use it :) – Arsalan Adam Khatri Jan 12 '16 at 8:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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