Hallo
Ich habe zwar schon versucht etwas zu meinem Problem zu finden aber nichts was ich bisher gefunden habe war die Lösung meines Problems.
Folgendes: Ich habe mir Typo3 4.2.3 installiert und möchte die Extension autotemplate nutzen. Nur irgendwie erstetzt automaketemplate seine selbst gesetzten Marker nicht.
Hier mein TS:
plugin.tx_automaketemplate_pi1 {
content = FILE
content.file = fileadmin/template/index.html
relPathPrefix = fileadmin/template/
elements {
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEAD
HEAD.rmTagSections = title
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
DIV.all = 1
}
}
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
template =< plugin.tx_automaketemplate_pi1
workOnSubpart = DOCUMENT_BODY
subparts.maincontent < styles.content.get
}
temp.headTemplate = TEMPLATE
temp.headTemplate {
template =< plugin.tx_automaketemplate_pi1
workOnSubpart = DOCUMENT_HEADER
}
page = PAGE
page.typeNum = 0
page.10 < temp.mainTemplate
page.headerData.10 < temp.headTemplate
Hier das HTML-Template:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<head>
<title>Title</title>
</head>
<body>
<div id="maincontent">hier gehört content rein</div>
</body>
</html>
Und hier das was Typo3 daraus macht:
<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<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-2008 of Kasper Skaarhoj. Extensions are copyright of their respective owners.
Information and contribution at http://typo3.com/ and http://typo3.org/
-->
<title>Home</title>
<meta name="generator" content="TYPO3 4.2 CMS" />
<script type="text/javascript" src="typo3temp/javascript_93077bb238.js"></script>
</head>
<body>
<div id="maincontent"><!--###maincontent### begin -->hier gehört content rein<!--###maincontent### end --></div>
</body>
</html>
Wie man sieht werden Marker im Body gesetzt aber nicht ersetzt. :x
Ich bin inzwischem mit meinem Latein am Ende.