v4 Masterpages not working? Options
sfxpete
Posted: Wednesday, November 26, 2008 3:27:45 PM
Rank: Devotee

Joined: 9/5/2007
Posts: 70
Hi All,

I'm just testing out v4's masterpage syntax but am having trouble getting child pages to show. Heres what I have in my master and child page...

Master
Code:
<%@ Master Language="C#" MasterPageFile="/umbraco/masterpages/default.master" AutoEventWireup="true" %>
<asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
    blah blah
    <asp:ContentPlaceHolder Id="tester" runat="server"></asp:ContentPlaceHolder>
</asp:Content>



Child
Code:
<%@ Master Language="C#" MasterPageFile="/masterpages/Another.master" AutoEventWireup="true" %>
<asp:Content ContentPlaceHolderId="tester" runat="server">
    testing
</asp:Content>


I see the text 'blah blah' when I view my content based based on the master template but no show with the child and the 'testing' text? Any ideas?
sfxpete
Posted: Wednesday, November 26, 2008 9:22:27 PM
Rank: Devotee

Joined: 9/5/2007
Posts: 70
Anyone at all, this is a desperate plee for help as I have some time limits on what I'm doing and would really like to use the oppertunity to explore v4 as opposed to v3 which I kno can do the job and may very well have to depending on if I can move forward!!!! :) :)
Sowl
Posted: Thursday, November 27, 2008 11:32:53 AM
Rank: Newbie

Joined: 11/27/2008
Posts: 10
Location: Oslo, Norway
sfxpete wrote:
Anyone at all, this is a desperate plee for help as I have some time limits on what I'm doing and would really like to use the oppertunity to explore v4 as opposed to v3 which I kno can do the job and may very well have to depending on if I can move forward!!!! :) :)


Strange, the following works for me in the latest beta:

Master :

<%@ Master Language="C#" MasterPageFile="/umbraco/masterpages/default.master" AutoEventWireup="true" %>

<asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">

<asp:ContentPlaceHolder runat="server" id="MasterContentPlaceHolder" />

</asp:Content>

Child (with master=master quoted above):
<%@ Master Language="C#" MasterPageFile="/masterpages/Master.master" AutoEventWireup="true" %>

<asp:Content ContentPlaceHolderID="MasterContentPlaceHolder" runat="server">
html here
</asp:Content>
sfxpete
Posted: Thursday, November 27, 2008 8:40:56 PM
Rank: Devotee

Joined: 9/5/2007
Posts: 70
Resolved. I was (stupidly) selecting the master template to render through, duh! Selected the child and guess what it works as you'd expect. Sorry for wasting your time Sowl! :) :)
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.