Hallo @
ich hab schon gesucht und gelesen und wieder gesucht aber ich finde nix bzw. kapiere es nicht. :-(
Wenn ich mit dem autotemplate und workOnSubpart arbeite ist meine erzeugte Seite leer.
Hier meine Daten:
<!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>
<title></title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
<div id="header">
<div id="menu_oben">menü_oben
</div>
</div>
<div id="header2">header2
<div id="logo"> logo
</div>
</div>
<div id="header3">header3
<div id="menu_top">menu_top
</div>
</div>
<div id="left">left
</div>
<div id="content">content
</div>
<div id="right">right
</div>
</body>
</html>
Typoscript:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/templates/main/vorlage01.html
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
TD.all = 1
DIV.all = 1
}
relPathPrefix = fileadmin/templates/main/
}
# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <body>-tags
workOnSubpart = DOCUMENT_BODY
}
# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <head>-tags
workOnSubpart = DOCUMENT_HEADER
}
# Default PAGE object:
page = PAGE
page.typeNum = 0
page.bodytag = body
page.stylesheet = fileadmin/templates/main/css/style.css
#page.config.disableAllHeaderCode=1
#page.10 = TEXT
#page.10.value = HELLO WORLDdirk!
# Copying the content from TEMPLATE for <body>-section:
page.10 =< temp.mainTemplate
#page.10 =< plugin.tx_automaketemplate_pi1
# Copying the content from TEMPLATE for <head>-section:
page.headerData.10 =< temp.headTemplate
#page.headerData.10 =< plugin.tx_automaketemplate_pi1
<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!--
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-2006 of Kasper Skaarhoj. Extensions are copyright of their respective owners.
Information and contribution at http://typo3.com/ and http://typo3.org/
-->
<link rel="stylesheet" type="text/css" href="typo3temp/stylesheet_8b2c94d14b.css" />
<link rel="stylesheet" type="text/css" href="fileadmin/templates/main/css/style.css" />
<title>Home</title>
<meta name="generator" content="TYPO3 4.0 CMS" />
<script type="text/javascript" src="typo3temp/javascript_757c080409.js"></script>
</head>
<body>
</body>
</html>
Wenn ich jedoch
page.10 =< plugin.tx_automaketemplate_pi1
verwende bekomme ich die Seite angezeigt
jedoch auch nicht richtig:
<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!--
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-2006 of Kasper Skaarhoj. Extensions are copyright of their respective owners.
Information and contribution at http://typo3.com/ and http://typo3.org/
-->
<link rel="stylesheet" type="text/css" href="typo3temp/stylesheet_8b2c94d14b.css" />
<link rel="stylesheet" type="text/css" href="fileadmin/templates/main/css/style.css" />
<title>Home</title>
<meta name="generator" content="TYPO3 4.0 CMS" />
<script type="text/javascript" src="typo3temp/javascript_757c080409.js"></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_HEADER### begin -->
<link rel="stylesheet" type="text/css" href="fileadmin/templates/main/css/style.css" />
<!--###DOCUMENT_HEADER### end --></head>
<body><!--###DOCUMENT_BODY### begin -->
<div id="header"><!--###header### begin -->
<div id="menu_oben"><!--###menu_oben### begin -->menü_oben
<!--###menu_oben### end --></div>
<!--###header### end --></div>
<div id="header2"><!--###header2### begin -->header2
<div id="logo"><!--###logo### begin --> logo
<!--###logo### end --></div>
<!--###header2### end --></div>
<div id="header3"><!--###header3### begin -->header3
<div id="menu_top"><!--###menu_top### begin -->menu_top
<!--###menu_top### end --></div>
<!--###header3### end --></div>
<div id="left"><!--###left### begin -->left
<!--###left### end --></div>
<div id="content"><!--###content### begin -->content
<!--###content### end --></div>
<div id="right"><!--###right### begin -->right
<!--###right### end --></div>
<!--###DOCUMENT_BODY### end --></body>
</html>
</body>
</html>
Kann mir einer von euch helfen?
#angry#