Issue Bug Closed

#20471TEMPLATE directive doesn't generate any output

Juergen Kreis 05/19/09, 10:00 updated 05/21/09, 21:10

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:

//////////////////////////////////////////////////////////////////////////////////////////////////////

  1. Template content object:
    temp.mainTemplate = TEMPLATE
    temp.mainTemplate {
    template = FILE
    template.file = fileadmin/html/htmlTest.html
    }
  1. 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><br><head></head><br><body><h1>This is a test!</h1></body><br> <p>//////////////////////////////////////////////////////////////////////////////////////////////////////<br>Output produced by Typo3 (same with 4.2.6 or 4.1.10)</p> <p> PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;<br><html><br><head><br> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head></html></p> <p><!-- <br /> This website is powered by TYPO3 - inspiring people to share!<br /> TYPO3 is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.<br /> TYPO3 is copyright 1998-2008 of Kasper Skaarhoj. Extensions are copyright of their respective owners.<br /> Information and contribution at <a href="http://typo3.com/" target="_blank" rel="noreferrer">http://typo3.com/</a> and <a href="http://typo3.org/" target="_blank" rel="noreferrer">http://typo3.org/</a><br />--><br> <link rel="stylesheet" type="text/css" href="typo3temp/stylesheet_8192c2092f.css"><br> <title>Home</title><br> <meta name="generator" content="TYPO3 4.2 CMS"><br> <script type="text/javascript" src="typo3temp/javascript_93077bb238.js"></script></p> <p><br><body><br>TEST<br></body><br></p> <p>=&gt; page.20 is executed, page.5 is missing !!!<br>(issue imported from #M11143)</p></html>

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.