多分私は何かが足りないだけです...明らかに、これまでのところ、私は何も助けてくれませんでした.
問題は単純に思えます。ルート ツリー内の 1 つのページに対して「わずかに」異なるページをロードしようとしているだけです。他のすべてのページはルート テンプレートを共有しますが、この 1 つのページにはまったく異なる種類のコンテンツとわずかに異なるヘッダーを含める必要があるため、セカンダリ テンプレートが必要です。
私はそれのために次のことをしました:
# Default PAGE object:
page = PAGE
# Define the template
page.10 = TEMPLATE
# Our template is a file
page.10.template = FILE
# Our template file is fileadmin/template/media/media.html
page.10.template.file = fileadmin/template/media/media.html
しかし、これもすべて、ページの読み込み時に完全に空白の HTML になるだけです。エラーも何もありません!ページのソースが表示されます:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!--
This website is powered by TYPO3 - inspiring people to share!
TYPO3 is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.
TYPO3 is copyright 1998-2013 of Kasper Skaarhoj. Extensions are copyright of their respective owners.
Information and contribution at http://typo3.org/
-->
<link rel="shortcut icon" href="http://192.168.206.11/introductionpackage-6.1.0/fileadmin/template/media/favicon.ico" type="image/x-ico; charset=binary">
<link rel="icon" href="http://192.168.206.11/introductionpackage-6.1.0/fileadmin/template/media/favicon.ico" type="image/x-ico; charset=binary">
<title>Media</title>
<meta name="generator" content="TYPO3 6.1 CMS">
<link rel="stylesheet" type="text/css" href="typo3temp/stylesheet_15a396fd13.css?1369410324" media="all">
<link rel="stylesheet" type="text/css" href="fileadmin/template/style.css?1369398600" media="all">
</head>
<body>
</body>
</html>
ですから、問題は、単一のページに別のテンプレートを持たせるにはどうすればよいかということだと思います。