Gerne,
aber wir sollten vielleicht, wenn das hier länger wird, auf Mail oder PM ausweichen, weil es sonst recht voll im Forum wird, außerdem finde ich das auch aufwendiger.
Die meisten der von mir geschriebenen TSCodes sind ziemlich kompliziert, daher hier mal ein Beispiel das noch recht übersichtlich bleibt. Ist nicht von mir, aber hat den Vorteil, dass du dir das auch runterladen kannst um damit zu experimentieren. Das Ganze heißt YAML und ist ein fertiges Layout mit TS Code, so dass man im Prinzip eine Basisseite hat, wenn man das installiert.
Findest du hier: http://yaml.t3net.de/
Ich empfehle das zwar nicht uneingeschränkt, weil ich das Template und den CSS-Code sehr kompliziert finde, aber man kann (sofern TYPO richtig installiert ist) wenn man das installiert, sicher sein, dass man eine funktionierende Basis hat. Da kann man dann mal am Code rumspielen und testen, was wie funktioniert.
Hier mal der TS-Code davon:
#
############################
#AdminPanel ein oder aus ?
#
config.admPanel = 0
config {
simulateStaticDocuments=0
simulateStaticDocuments_pEnc=md5
# zeigt 25 Zeichen des Seitentitels an
simulateStaticDocuments_addTitle=25
# erzeugt kurze URL für die News-Links
simulateStaticDocuments_pEnc_onlyP = cHash, tx_ttnews[backPid], tx_ttnews[tt_news], tx_ttnews[pS], tx_ttnews[pL], tx_ttnews[arc], tx_ttnews[cat], tx_ttnews[pointer], tx_ttnews[swords]
disablePrefixComment = 1
headerComment = YAML - Yet Another Multicolumn Layout
removeDefaultJS = 1
}
#
############################
#Haupt TEMPLATE cObject fuer 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.page_margins =
# subparts.page =
subparts.header < temp.header
# subparts.nav =
# subparts.navigation =
subparts.nav_main < temp.nav_main
# subparts.main =
# subparts.content =
# subparts.col1 =
subparts.leftcolumn_content < temp.col1_content
subparts.col2_content < styles.content.getRight
subparts.col2_content.renderObj.stdWrap.wrap=<div class="contentelement">|</div>
subparts.rightcolumn_content < styles.content.get
subparts.rightcolumn_content.renderObj.stdWrap.wrap=<div class="contentelement">|</div>
subparts.midcol3_content < styles.content.get
subparts.midcol3_content.renderObj.stdWrap.wrap=<div class="contentelement">|</div>
subparts.footer < temp.footer
}
#
############################
#Haupt TEMPLATE cObject fuer HEADER
#
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.config.doctype = xhtml_trans
page.config.xhtml_cleaning = all
page.config.index_enable = 1
#page.includeLibs.dfn = fileadmin/scripts/dfn_iproc_tmenu.inc
#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
#
##############################
#AWStats
#
config.stat = 1
config.stat_apache = 1
config.stat_apache_logfile = logfile.log
#config.stat_mysql = 1
#
##########################
#Auto-Parser konfigurieren
#Template-File lesen:
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
DIV.all = 1
}
relPathPrefix = fileadmin/template/
}
plugin.tx_rlmptmplselector_pi1.templatePathMain = fileadmin/template/main/
plugin.tx_rlmptmplselector_pi1.templatePathSub = fileadmin/template/sub/
plugin.tx_rlmptmplselector_pi1.defaultTemplateFileNameMain = phoenix01.html
#
##############################
# Einstellungen für Meta-Tags
#
plugin.meta.flags.useSecondaryDescKey = 0
plugin.meta.flags.alwaysGlobalDescription = 1
plugin.meta.flags.alwaysGlobalKeywords = 1
plugin.meta.global.author = Dieter Bunkerd
plugin.meta.global.email =
plugin.meta.global.copyright = t3net.de all rights reserved
plugin.meta.global.keywords = yaml, typo3, t3d, template, kostenlos, download, vorlage, layout, tutorial, columns, spalten, CSS, XHTML, barrierearm, flexibel
plugin.meta.global.description = Die Integration des CSS-Frameworks YAML in Typo3. Leicht zu installieren unter Verwendung einer t3d-Datei.
plugin.meta.global.revisit = 7 days
plugin.meta.global.robots = index,follow
page.headerData.999 < plugin.meta
tt_content.stdWrap.innerWrap2 = | <p class="csc-linkToTop"><a href="#"><img src="fileadmin/img/top.gif" width="11" height="15" border="0" alt="Nach oben" title="Nach oben" /></a></p>
Wobei ich gerade sehe, dass auch das schon etwas kompliziert ist... Ich habe nur gerade nichts einfacheres. Mal versuchen was aus dem Kopf zu basteln:
page = PAGE
page.typeNum = 0
# Sprache der Seite
page.config.sys_language_uid = 1
page.config.language = de
page.config.locale_all = de_DE
# Stylesheet, das verwendet wird
page.stylesheet = fileadmin/css/meinstylesheet.css
# Template, das verwendet wird
page.10 = TEMPLATE
page.10 {
template = FILE
template.file = fileadmin/template/meintemplate.htm
workOnSubpart = DOKUMENT_BODY
marks.HEADER < temp.header
marks.MENU < temp.menu
marks.content < styles.content.get
}
Das sollte funktionieren, wenn das Template und die CSS jeweils vorhanden sind und du natürlich in dem Template die entsprechenden marks auch drinhast.
Für styles.content.get brauchst du natürlich die css_styled_content Extension und musst unter include static die css_styled_content einfügen.