[TYPO3-german] Frage zu automaketemplate
Rolf Staege
rolf.staege at lumturo.net
Wed Feb 24 14:03:44 CET 2010
Hallo,
ich versuche mich gerade an der Verwendung des Plugins automaketemplate. Gehe dabei auch streng nach Buchvorgabe vor.
Allerdings wird bei mir etwas komisches generiert: Typo3 generiert einen eigenen <head>-und <body>-Bereich um die des Templates herum.
Damit sieht das Ergebnis wie folgt aus:
<!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="de-DE" lang="de-DE">
<head>
<meta http-equiv="Content-Type" content="text/html; 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-2009 of Kasper Skaarhoj. Extensions are copyright of their respective owners.
Information and contribution at http://typo3.com/ and http://typo3.org/
-->
<title>Seite 2</title>
<meta name="generator" content="TYPO3 4.3 CMS" />
<link rel="stylesheet" type="text/css" href="typo3temp/stylesheet_42a7d7391a.css" media="all" />
<link rel="stylesheet" type="text/css" href="fileadmin/templates/main/css/central.css" media="screen" />
<script src="typo3temp/javascript_93077bb238.js" type="text/javascript"></script>
</head>
<body>
<!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><!--###DOCUMENT_HEAD### begin -->
<!-- ###DOCUMENT_HEAD### -->
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Your Page Title</title><!-- ###DOCUMENT_HEAD### -->
<link href="fileadmin/templates/./css/central.css" rel="stylesheet" type="text/css" />
<!--[if lte IE 7]>
<link href="fileadmin/templates/./css/my_patches/patch_central.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--###DOCUMENT_HEAD### end --></head>
<body><!--###DOCUMENT_BODY### begin -->
<!-- ###DOCUMENT_BODY### Beginn -->
...
<!-- ###DOCUMENT_BODY### Beginn -->
<!-- full skiplink functionality in webkit browsers -->
<script src="fileadmin/templates/./yaml/core/js/webkit-focusfix.js" type="text/javascript"></script>
<!--###DOCUMENT_BODY### end --></body>
</html>
</body>
</html>
In meinem Template habe ich folgende Config:
# Konfiguration Template Auto-parser
plugin.tx_automaketemplate_pi1 {
content = FILE
content.file = fileadmin/templates/main/mainTemplate.html
relPathPrefix = fileadmin/templates/
elements {
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEAD
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
DIV.all = 1
}
}
# Default PAGE object:
page = PAGE
page.10 = TEMPLATE
page.10 {
template =< plugin.tx_automaketemplate_pi1
subparts.hlist = HMENU
subparts.hlist {
entryLevel = 0
wrap = <ul> | </ul>
1 = TMENU
1.NO.linkWrap = <li> | </li>
}
}
page.includeCSS {
file10 = fileadmin/templates/main/css/central.css
file10.media = screen
}
So wie ich es verstanden habe, hätte typo3 genau wie im inneren body-Tag auch im head-Tag ein subpart anlegen sollen. Anstatt dessen wrapt er alles einmal.
Sieht jemand den Fehler?
Danke im Voraus,
Rolf Staege
----------------------------------------------------------------
l u m t u r o
Softwareentwicklung & Schulungen
Dipl. Inf. Rolf Staege
Ferdinandstr. 11
18055 Rostock
Fon: 0381 / 210 45 83
Mobil: 0176 / 49 139 150
Fax: 0381 / 210 45 83
Email: rolf.staege at lumturo.net
Internet: http://www.lumturo.net
More information about the TYPO3-german
mailing list