Project

General

Profile

Actions

Bug #20471

closed

TEMPLATE directive doesn't generate any output

Added by Juergen Kreis over 15 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-05-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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>
<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)

Actions

Also available in: Atom PDF