Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi all, I'm new to Umbraco v6.1.3, but I understand how templates work. I have an issue where content in my child templates do not appear in my master template.
My Master Template
<%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %> <asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server"> <asp:ContentPlaceHolder Id="Master" runat="server"> </asp:ContentPlaceHolder> </asp:Content>
My Child Template
<%@ Master Language="C#" MasterPageFile="~/masterpages/default.master" AutoEventWireup="true" %> <asp:Content ContentPlaceHolderId="Master" runat="server"> </asp:Content>
I can populate the ContentPlaceHolder with content on the master and it shows fine.
Master template drop-down for the master template is assigned to 'none'.
Master template drop-down for the child template is assigned to 'Master'.
Any ideas? Thanks in advance.
That looks fine how have you got your doc types and nodes setup? Charlie :)
Hi Charlie,I double checked the doc types and nodes and everything seemed ok to me. I was playing about with it and now I'm getting this:
Parser Error Message: The file '/masterpages/default.master' does not exist.
<%@ Master Language="C#" MasterPageFile="~/masterpages/default.Master" AutoEventWireup="true" %>
I think there is a capital letter issue with my file names. What is the proper syntax for capitalisation for file names?
In my masterpages folder I have the file 'master'In Umbraco, Master Template has:Name: Master Alias: masterMaster Template: NoneTopline:
<%@ Master Language="C#" MasterPageFile="~/masterpages/default.master" AutoEventWireup="true" %>
In Child Template:Name: HomepageAlias: homepageMaster Template: MasterTopline:
Thanks
I found the problem. I changed the 'MasterPageFile' location in the top line of the master and every child template to this:
<%@ Master Language="C#" MasterPageFile="~/masterpages/Master.master" AutoEventWireup="true" %>
I had default.master and not Master.master. No idea how that changed but child templates are now loading into master template :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Child template content not showing on Master template #confused!
Hi all, I'm new to Umbraco v6.1.3, but I understand how templates work. I have an issue where content in my child templates do not appear in my master template.
My Master Template
My Child Template
I can populate the ContentPlaceHolder with content on the master and it shows fine.
Master template drop-down for the master template is assigned to 'none'.
Master template drop-down for the child template is assigned to 'Master'.
Any ideas? Thanks in advance.
That looks fine how have you got your doc types and nodes setup? Charlie :)
Hi Charlie,
I double checked the doc types and nodes and everything seemed ok to me. I was playing about with it and now I'm getting this:
I think there is a capital letter issue with my file names. What is the proper syntax for capitalisation for file names?
In my masterpages folder I have the file 'master'
In Umbraco, Master Template has:
Name: Master
Alias: master
Master Template: None
Topline:
In Child Template:
Name: Homepage
Alias: homepage
Master Template: Master
Topline:
Thanks
I found the problem. I changed the 'MasterPageFile' location in the top line of the master and every child template to this:
I had default.master and not Master.master. No idea how that changed but child templates are now loading into master template :)
is working on a reply...