ASPX Masterpage Template

Shane Cao asked on December 17, 2018 16:56

So I was using a standard Portal master template at first but was then notified that I would need to add a back end tool to my site called Bright Edge. In order to do so I must create my own custom master page in ASPX which I have done. I'm able to select my custom master template through the root page by pointing to the path of the file. The template loads fine, my header and footer look great.

My issue is that when I try to view my home page, about page, or any page it doesn't seem to load my template even after I set it to load the closest master template through the general tab. Any help would be greatly appreciated.

Correct Answer

Brenden Kehren answered on December 17, 2018 22:01

In your masterpage code, add a reference to the header and footer user controls:

<%@ Register Src="~/App/UserControls/MenuControls/HeaderControl.ascx" TagName="menu" TagPrefix="cc1" %>
<%@ Register Src="~/App/UserControls/MenuControls/FooterControl.ascx" TagName="footer" TagPrefix="cc1" %>

Then inside the body tag, add some code similar to this for your layout:

<form id="form1" runat="server">
    <asp:ScriptManager ID="manScript" runat="server" ScriptMode="Release" EnableViewState="false" />
    <cms:CMSPortalManager runat="server" ID="manPortal" EnableViewState="False" />
    <cms:CMSPagePlaceholder runat="server" ID="pagePlaceHolder">
        <LayoutTemplate>
            <div class="page-wrapper" id="content" role="main">
                <cc1:menu runat="server"></cc1:menu>
                <asp:ContentPlaceHolder ID="main" runat="server"></asp:ContentPlaceHolder>
                <cc1:footer runat="server"></cc1:footer>
            </div>
        </LayoutTemplate>
    </cms:CMSPagePlaceholder>
</form>
1 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on December 17, 2018 17:14

I'd suggest checking out the documentation on this one. Sounds like you're using ASPX + Portal. So there are a few things you need to do to make sure it works properly.

0 votesVote for this answer Mark as a Correct answer

Shane Cao answered on December 17, 2018 17:16

Thanks for this link. That is exactly what I am doing. I'll check this out and come back for further questions if I have it.

0 votesVote for this answer Mark as a Correct answer

Shane Cao answered on December 17, 2018 21:52

So I followed the steps from 1-3 of that article but can't seem to get steps 4 - 5 working, think you could help me understand this a little better.

0 votesVote for this answer Mark as a Correct answer

Shane Cao answered on December 18, 2018 15:39

Thanks for the help Brenden!

0 votesVote for this answer Mark as a Correct answer

Neil Powers answered on July 8, 2019 18:52

Could you also setup BrightEdge as a webpart on a portal page?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.