Hallo,
nachdem ich nach vielem Probieren doch nicht so
ganz schlau aus der Doku zum "automaketemplate" geworden bin,
möchte ich hier mal meinen Code posten, in der
Hoffnung, dass mir jemand sagen kann, wo der
Hund begraben liegt. Denn leider wird im Body
nichts ausgegeben.
config {
.language = de
index_enable = 1
admPanel = 0
#doctype = xhtml_trans
#xhtml_cleaning = 1
#Emailprotection
#spamProtectEmailAddresses = -2
#spamProtectEmailAddresses_atSubst = (at)
}
# Configuring the Auto-Parser:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/html_templates/template_2_column.tmpl
# 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
div.all = 1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/html_templates/
}
# 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
# Substitute the ###topnav### subpart with some example content:
#subparts.topnav = TEXT
#subparts.topnav.value = HELLO WORLD - MENU
# Substitute the ###navi### subpart with some example content:
subparts.navi = TEXT
subparts.navi.value = HELLO WORLD - CONTENT
}
# 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
# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate
# Copying the content from TEMPLATE for <head>-section:
page.headerData.10 < temp.headTemplate
Und hier das Template dazu:
<!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">
<head><!-- ###DOCUMENT_HEADER### begin -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="shortcut icon" href="fantashion/img/favicon.ico" />
<style type="text/css" media="all">
/*<![CDATA[*/
@import url("css/fantashion.css");
/*]]>*/
</style>
<script type="text/javascript" src="js/common.js"></script>
<!-- ###DOCUMENT_HEADER### end -->
</head>
<body onLoad="stripe();">
<!-- ###DOCUMENT_BODY### begin -->
<div id="wrapper">
<div id="header">
<div id="top">
<div id="topnav" align="center"><img src="img/layout/top_dot_left.png" alt="dot" /> ###topnav### <img src="img/layout/top_dot_right.png" alt="dot" /></div>
</div><!--top-->
<a href="#"><img style="display:block; float:left;" src="img/layout/logo.png" alt="Fantashion - Historical Fantasywear" border="0" title="Fantashion - Historical Fantasywear" /></a><img style="display:block; float:left;" src="img/layout/hero.png" alt="kleiner Held" title="kleiner Held" /><img style="display:block; float:left;" src="img/layout/dragon.png" alt="feuerspuckende Drache" title="feuerspuckende Drache" />
</div><!--header-->
<div id="navi">
###navi###
</div><!--nav-->
<div style="width: 100%; height: 20px;"></div>
<div id="event_overview" style="margin-left: 70px;">
<div id="left">
<div id="content_aktuelles">
###content_aktuelles###
</div><!--content_aktuelles-->
</div><!--left-->
<div id="right">
<p> </p>
<div id="content_element">
###content_element###
</div><!--content_element-->
</div><!--right-->
</div><!-- event_overview -->
<div id="footer">
<div align="center">
<img src="img/layout/bottom_perch.png" alt="grafik" /><br /><br />
<div id="footer1">
###footer1###
</div>
</div>
</div><!--footer-->
</div><!--wrapper-->
<!-- ###DOCUMENT_BODY### end -->
</body>
</html>
Danke
T.C.