Friday 06 May 2011 1:25:29 am
I'm trying to create a new template for my vanilla EZP 4.4.0. I've created the pagelayout.tpl and put it in the correct place, and changed the site.ini.append.php file to use my test design. However, when I try to view my home page it doesn't show any content. The template is very minimal, for testing purposes, as follows:
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<style type="text/css">
@import url({'stylesheets/core.css'|ezdesign});
@import url({'stylesheets/debug.css'|ezdesign});
</style>
{include uri='design:page_head.tpl'}
</head>
<body>
<p>Testing.</p>
{$module_result.content}
<!--DEBUG_REPORT-->
</body>
</html> In the site.ini.append.php file I have the following:
[DesignSettings]
SiteDesign=minimal When I view the home page, the template itself loads fine. The header meta content is populated, the fallback stylesheets are imported, my test paragraph is shown, but {$module_result.content} doesn't return anything at all. Why might that be? If I change the template back to ezwebin my content shows perfectly, so it's not an issue with the page content itself. I've tried modifying the page content and re-saving, but that's not helped either. I've tried clearing all the caches, and that doesn't help. I've created another page in EZP, and that content shows up fine with the above template, so it's only the home page that's having problems. I've tried using {$module_result.node_id} and that correctly shows 2, so $module_result itself is fine. I've also tried {$module_result|attribute(show)}, which displays a complete overview of the whole object, and shows that everything else is fine except the content part, which is an empty string. I've even tried rebooting Apache, in desperation. So any suggestions as to why {$module_result.content} might be empty, but only for my template? Is there an override setting I've missed?
|