我正在使用 umbraco CMS 版本 4.11.3 内容嵌套母版页未加载(或显示)。(内容标题模板未显示。)请帮助我。
Master.master 代码:
<%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>
<asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
<!doctype html>
<html>
<head title="Movafaqiyat" runat="server">
</head>
<body>
<form id="form1" runat="server">
<div id="MasterMaster" style="width: 100%;">
<div style="width: 100%;">
<asp:ContentPlaceHolder ID="HeaderParentContent" runat="server">
</asp:ContentPlaceHolder>
</div>
<div style="width: 100%;">
<asp:ContentPlaceHolder ID="MenuContent" runat="server">
</asp:ContentPlaceHolder>
</div>
<div style="width: 100%;">
<asp:ContentPlaceHolder ID="FooterParentContent" runat="server">
</asp:ContentPlaceHolder>
</div>
</div>
</form>
</body>
</html>
</asp:Content>
Blockquote HeaderParent.master 代码:
<%@ Master Language="C#" MasterPageFile="~/masterpages/Master.master" AutoEventWireup="true" %>
<asp:Content ContentPlaceHolderID="HeaderParentContent" runat="server">
<div id="HeaderParentMaster" style="width: 100%; border: 1px solid red;">
<div>
<asp:ContentPlaceHolder ID="HeaderContent" runat="server">
</asp:ContentPlaceHolder>
</div>
</div>
</asp:Content>
Blockquote Header.master 代码:
<%@ Master Language="C#" MasterPageFile="~/masterpages/HeaderParent.master" AutoEventWireup="true" %>
<asp:Content ContentPlaceHolderID="HeaderContent" runat="server">
<div style="width: 100%">
Did not show HEADER.Master IN HERE!
</div>
</asp:Content>