Code:
<html> <head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<style type="text/css" id="internalStyle"> </style>
<title>TuS Niederwermelskirchen 07 e.V.</title>
<link href="res/stylesheet1.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table id="main" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="950" height="1">
<tr>
<td id="header_1" width="750" colspan="3" height="111"> </td>
</tr>
<tr>
<td id="menu_1" width="150" height="448">
<div class="menu1-level1-no"><a href="#">Menu item</a></div>
<div class="menu1-level1-act"><a href="#">Menu 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</a></div>
</td>
<td id="content" width="500" height="448"> </td>
</tr>
<tr>
<td id="foote" width="629" height="37" colspan="3">©Tus Niederwermelskirchen 07 e.V.</td>
Das ist dein template. Stecke es in fileadmin/template rein.
Code:
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/index.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
DIV.all = 1
TD.all = 1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/
}
##############NAVIGATION###################
# 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>
}
# 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
#####################################SUBPARTS#######################
# Substitute the ###menu_1### subpart with dynamic menu:
subparts.menu_1 < temp.menu_1
# Substitute the ###content### subpart with some example content:
subparts.content< styles.content.get
subparts.content {
table = tt_content
select.orderBy = sorting
select.where = colPos=0
select.languageField = sys_language_uid
}
}
# 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_TARGET = _top
# Copying the content from TEMPLATE for <body>-section:
page.30 < temp.mainTemplate
# Copying the content from TEMPLATE for <head>-section:
page.headerData.30 < temp.headTemplate Hier ist dein setup.
Vergiss nicht das Click here to edit whole template record
Und dass zu machen: CSS Styled content.;-)
Ist zwar t nicht so sauber

aber funktioniert.
Halt erste Hilfe