ich war grad dabei erfolglos meine rechte spalte zu aktivieren, da bekomm ich mein template neuerdings 2 mal ausgespuckt. 1 mal ungeparsed und einmal geparsed. ich habe keine ahnung warum und wieso, suche jetzt schon seit stunden nach dem fehler, baue meine seite stück für stück zurück und meine, dass der querschläger recht simpel sein könnt (hatte vor einem jahr schonmal sowas erlebt).
naja ich muss leider resignieren, hoffe jemand mit einem geschulten blick kann mir den nervenkiller verraten.
mein ts setup sieht wie folgt aus:
################# AUTO PARSER PLUGIN #####################
#######################################################
# Configuring the Auto-Parser:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/main/template_1.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
DIV.all = 1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/main/
}
######################################################
###################### Menu 1 cObject#####################
temp.menu_1 = HMENU
# First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
# Normal state properties
NO.allWrap = <div class="menu1-level1-no"> | </div>
NO.stdWrap.htmlSpecialChars = 1
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="menu1-level1-act"> | </div>
ACT.stdWrap.htmlSpecialChars = 1
}
# Second level menu-object, textual
temp.menu_1.2 = TMENU
temp.menu_1.2 {
# Normal state properties
NO.allWrap = <div class="menu1-level2-no"> | </div>
NO.stdWrap.htmlSpecialChars = 1
# Enable active state and set properties:
ACT = 1
ACT.stdWrap.htmlSpecialChars = 1
ACT.allWrap = <div class="menu1-level2-act"> | </div>
}
#####################################################
################## MAIN TEMPLATE cObject #################
# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
# Feeding the contnet from the Auto-pareser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <body>-tags
workOnSubpart = DOCUMENT_BODY
# Substitute the ###menu_1### subpart with dynamic menu:
subparts.menu_1 < temp.menu_1
# Substitue the ###content### subpart with some example content
subparts.content < styles.content.get
}
# 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
page.config.doctype = xhtml_trans
und mein HTML template. wie man sieht unweit von dem tmpl build tutorial standard entfernt...
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="#internalStyle" type="text/css"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="res/stylesheet.css" rel="stylesheet" type="text/css" />
<style type="text/css" id="internalStyle">
/*<![CDATA[*/
BODY { margin: 0 0 0 0; background-color: white; }
/*]]>*/
</style>
<body>
<table border="0" align="center" cellpadding="0" cellspacing="0">
<!-- Header image row: -->
<tr>
<td id="header_1"> </td>
<td id="header_2"> </td>
<td id="header_3"> </td>
</tr>
<tr>
<!-- Menu table cell: -->
<td id="menu_1">
<div class="menu1-level1-no"><a href="#">Menu item 1</a></div>
<div class="menu1-level1-no"><a href="#">Menu item 2</a></div>
<div class="menu1-level1-act"><a href="#">Menu item 3 (act)</a></div>
<div class="menu1-level2-no"><a href="#">Level 2 item</a></div>
<div class="menu1-level2-no"><a href="#">Level 2 item</a></div>
<div class="menu1-level2-act"><a href="#">Level 2 item (act)</a></div>
<div class="menu1-level1-no"><a href="#">Menu item 2</a></div>
</td>
<!-- Page Content Area table cell: -->
<td id="content">Content
</td>
<td id="right" height="100%" width="158" bgcolor="#FFFFFF" align="left">
</td>
</tr>
<!-- Footer row: -->
<tr>
<td colspan="3" id="footer">
<p>copyright (c) by </p>
</td>
</tr>
</table>
</body>
</html>
dazu möchte ich noch erwähnen, dass ich sowohl den setupcode des main template cobject TS, sowie des autoparser TS, als auch den menü TS seperat einbinde. das ganze hatte aber auch schonmal soweit super funktioniert.
inkludieren tue ich nur beim root tmpl 'css styled content' und 'default css-styles' sowie 2 weiter tt_news sachen (die aber keinen weiteren einfluss nehmen sollten).
also wie gesagt, ich versuchte zuletzt die rechte spalte per marker zu aktivieren, hatte aber probleme mit dem autoparser und nun bekomm ich alles doppelt =(
meine seite http://web76.arescontrol.de/