Ich habe folgendes dringende Problem:
Ich muss mit Typo3 eine Seite basteln, die aus einem Top-Frame ("top") und einen Inhaltsframe ("page") besteht. Für die Frameinhalte soll CSS styled content und Automaketemplate verwendet werden (wie in MTB1). Die Framedefinition ist soweit kein Problem, das Autoparsen des Templates funktioniert auch.
Mein Problem ist allerdings: Im Quelltext des Inhaltsframes werden außerhalb des eigentlichen Template-Codes die Head- und Body-Tags nochmal (also doppelt) erzeugt, so dass ich damit nicht mehr weiterarbeiten kann (vor allem dynamische Inhalte einbinden). Wer hat eine Idee, woran das liegt?? (Alle Infos siehe unten)
Mein Template-Setup:
# Definition of the page-objects
page = PAGE
top = PAGE
page.typeNum = 1
top.typeNum = 2
# Configuring the Auto-Parser:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/frames/content.html
# Here we define which elements in the HTML that
# should be wrapped in subpart-comments:
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
TD.all = 1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/frames/
}
# Defining the content-frame
page.10 < plugin.tx_automaketemplate_pi1
# Defining the top-frame
top.10 = TEXT
top.10.value = This is the top-frame
outer_frameset = PAGE
outer_frameset.typeNum = 0
# Defining the outer frameset
outer_frameset.frameSet.rows = 150,*
outer_frameset.frameSet.params = border="0" framespacing="0" frameborder="NO"
outer_frameset.frameSet {
1 = FRAME
1.obj = top
1.params = scrolling="NO" noresize frameborder="NO" marginwidth="0" marginheight="0"
2 = FRAME
2.obj = page
2.params = scrolling="AUTO" noresize frameborder="NO"
}
Mein Template-File (fileadmin/frames/content/html):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<!-- ###DOCUMENT_BODY### -->
<table border="0">
<tr valign="top">
<td id="navi">
Navigation
</td>
<td id="main">Main Part
</td>
</tr>
</table>
<!-- ###DOCUMENT_BODY### -->
</body>
</html>
Der resultierende Quelltext des Inhaltsframes ("page"):
<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<!--
This website is brought to you by TYPO3 - get.content.right
TYPO3 is a free open source Content Management Framework created by Kasper Skaarhoj and licensed under GNU/GPL.
TYPO3 is copyright 1998-2004 of Kasper Skaarhoj. Extensions are copyright of their respective owners.
Information and contribution at http://www.typo3.com
-->
<title>Frametest</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="generator" content="TYPO3 3.6 CMS" />
<script type="text/javascript">
/*<![CDATA[*/
<!--
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
var msie4 = (browserName == "Microsoft Internet Explorer" && browserVer >= 4);
if ((browserName == "Netscape" && browserVer >= 3) || msie4 || browserName=="Konqueror") {version = "n3";} else {version = "n2";}
// Blurring links:
function blurLink(theObject) { //
if (msie4) {theObject.blur();}
}
// -->
/*]]>*/
</script>
</head>
<body bgcolor="#FFFFFF">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head><!--###DOCUMENT_HEADER### begin -->
<!--###DOCUMENT_HEADER### end --></head>
<body><!--###DOCUMENT_BODY### begin -->
<!-- ###DOCUMENT_BODY### -->
<table border="0">
<tr valign="top">
<td id="navi"><!--###navi### begin -->
Navigation
<!--###navi### end --></td>
<td id="main"><!--###main### begin -->Main Part
<!--###main### end --></td>
</tr>
</table>
<!-- ###DOCUMENT_BODY### -->
<!--###DOCUMENT_BODY### end --></body>
</html>
</body>
</html>