Hoi .. ich bin leider nicht auf eine lösung beim durchstöbern der threads gestoßen aber vllt hat jemand nen tipp für mich das ich nicht länger hier rumsetze wie nen schwein das ins uhrwerk schaut :-)
Typo3.6.0RC1
CSS Styled Content
Template_Selector
Template Auto-parser
So sieht mein template aus
config.simulateStaticDocuments = 0
// --- SET UP MENUE -----------------------------------------------
# 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>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="menu1-level1-act"> | </div>
}
# 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>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="menu1-level2-act"> | </div>
}
temp.menu_1.3 = TMENU
temp.menu_1.3 {
# Normal state properties
NO.allWrap = <div class="menu1-level3-no"> | </div>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="menu1-level3-act"> | </div>
}
// --- SET UP TEMPLATE SELECTOR -----------------------------------------------
plugin.tx_rlmptmplselector_pi1 {
// Define the paths leading to our HTML template files
templatePathMain = fileadmin/templates/main/
templatePathSub = fileadmin/templates/sub/
// Define the filenames used as the default HTML templates
defaultTemplateFileNameMain = template_01.html
defaultTemplateFileNameSub = subtemplate_01.html
// If there is a page having no template selected, use a template
// selected earlier in the rootline. If there is none, use the default
inheritMainTemplates = 1
inheritSubTemplates = 1
}
// --- CONFIGURE THE AUTOMAKETEMPLATE EXTENSION --------------------------
plugin.tx_automaketemplate_pi1 {
content < plugin.tx_rlmptmplselector_pi1
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/
}
// --- CREATE TS TEMPLATES FOR MAIN AND CONTENT AREA ------------------
temp.headTemplate = TEMPLATE
temp.headTemplate {
template =< plugin.tx_automaketemplate_pi1
workOnSubpart = DOCUMENT_HEADER
}
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
template =< plugin.tx_automaketemplate_pi1
// Modify the template selector config: This is a sub template!
template.content.templateType = main
workOnSubpart = DOCUMENT_BODY
subparts.menu_1 < temp.menu_1
subparts.content < styles.content.get
//subparts.right < styles.content.getRight
//subparts.left < styles.content.getLeft
//subparts.border < styles.content.getBorder
}
// --- CREATE THE MAIN PAGE OBJECT -------------------------------------------
page = PAGE
page {
typeNum = 0
headerData.10 < temp.headTemplate
10 < temp.mainTemplate
}
und so mein template file
<HTML>
<HEAD>
<TITLE>Kisum_design3_02_websize</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<link href="res/template_stylesheet_01.css" rel="stylesheet" type="text/css" />
</HEAD>
<BODY LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<TABLE WIDTH=900 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD>
<IMG SRC="img/kisum_01.jpg" WIDTH=183 HEIGHT=113 ALT=""></TD>
<TD>
<IMG SRC="img/kisum_02.jpg" WIDTH=717 HEIGHT=113 ALT=""></TD>
</TR>
<TR>
<TD id="menuarea">
<table id="menutable">
<tr>
<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>
</tr>
</table>
</TD>
<TD id="carea">
<table id="ctable">
<tr>
<td id="content">inhalt halt<br></td>
</tr>
</table>
</TD>
</TR>
<tr>
<td colspan="2" id="footer"></td>
</tr>
</TABLE>
<!-- End ImageReady Slices -->
</BODY>
</HTML>
das erstellte menü zeigt er wunderbar auf der seite an aber nicht den content den ich erstellt habe :-(
hat jemand ne idee woran das liegen könnte ???... tausend dank
Infernalspawn