Folks,
I have a small problem with nested templates in Prado at the moment. What I have is:
MainLayout.tpl:<html>
<com:THead />
<body>
<com:TForm>
<com:TContentPlaceHolder ID="ScreenTitle"/>
<com:TContentPlaceHolder ID="Titlebar" />
<com:TContentPlaceHolder ID="Menu" />
<com:TContentPlaceHolder ID="Content" />
</com:TForm>
</body>
</html>
StudentView.tpl:<%@ MasterClass="Application.layouts.MainLayout" %>
<com:TContent ID="Content">
<com:TContentPlaceHolder ID="placetitlecontent"/>
<com:TContentPlaceHolder ID="subplacescontent"/>
<com:TContentPlaceHolder ID="episodescontent"/>
<com:TContentPlaceHolder ID="resourcescontent"/>
</com:TContent>
Home.page:<com:TContent ID="Titlebar">
<com:TBulletedList ID="Breadcrumb"/>
</com:TContent>
<com:TContent ID="Menu">
<com:TBulletedList ID="menulist" />
</com:TContent>
<com:TContent ID="placetitlecontent">
<com:TLabel ID="contenttext" />
<com:TBulletedList ID="exits" DisplayMode="LinkButton" />
</com:TContent>
config.xml:<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<pages MasterClass="Application.layouts.StudentView" />
</configuration>
According to all the tutorials, this should work, but what I get is a TConfigurationException:
Description
TContent 'Titlebar' does not have a matching TContentPlaceHolder.
Source File
/www/prado/3.1.1.r2290/framework/Web/UI/TTemplateControl.php (212)
Any ideas what could be causing this?