Bug #20471
closedTEMPLATE directive doesn't generate any output
0%
Description
I have a problem with some very basic TS Code, where I cannot identify the reason of my problems.
In the meantime, I have reduced all code to an outmost simple version (see below).
The outcome is always the same:
The TEXT directive (same applies for HTML directive and others) is processed and generates an output, the TEMPLATE directive is ignored. Files are valid, paths are correct, I have no idea where to look for any errors.
Fact is: in the code below page.5 is ignored (TEMPLATE), page.20 (TEXT) is rendered.
Any advice how to analyze what happens with the TEMPLATE
TSCode:
//////////////////////////////////////////////////////////////////////////////////////////////////////
- Template content object:
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
template = FILE
template.file = fileadmin/html/htmlTest.html
}
- Default PAGE object:
page = PAGE
page.5 < temp.mainTemplate
page.20 = TEXT
page.20.value = TEST
//////////////////////////////////////////////////////////////////////////////////////////////////////
Content of testHTML.html (path is, of course, correct)
<html>
<head></head>
<body><h1>This is a test!</h1></body>
</html>
//////////////////////////////////////////////////////////////////////////////////////////////////////
Output produced by Typo3 (same with 4.2.6 or 4.1.10)
<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="typo3temp/stylesheet_8192c2092f.css" />
<title>Home</title>
<meta name="generator" content="TYPO3 4.2 CMS" />
<script type="text/javascript" src="typo3temp/javascript_93077bb238.js"></script>
</head>
<body>
TEST
</body>
</html>
=> page.20 is executed, page.5 is missing !!!
(issue imported from #M11143)