Hallo,
ich hab meine letzte Homepage einfach mit der Vorlage von automaketemplate erstellt.
Jetzt wollte ich gern das ganze selber gestalten.
Dazu habe ich mir als erstes eine html datei geschrieben, die den Aufbau wiedergibt.
Und dazu habe ich mir dann versucht ein Typoscript zu schreiben, bzw, ich habe nachdem das nicht funktioniert hat damit angefangen das Typoscript aus der Vorlage zu verändern.
Auch wenn ich weiß dass ich jetzt wahrscheinlich eine ganze Menge Code einfüge mach ich das, da ich einfach nicht mehr weiter komme!
Ich hoffe ihr könnt mir dabei ein wenig helfen.
Damit ihr gleich sehr, wie diei Homepage aussehen soll (zumindest in etwa) habe ich mal das Template einfach so (inkl. CSS) hochgeladen:
http://mosambik.info/t3test/template_1.html
und hier das Typoscript:
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read he 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
DIV.all = 1
SPAN.all = 1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/main/
}
# Main TEMPLATE cObject for the BODY
Menu 1 cObject
temp.top_menue_div = HMENU
# First level menu-object, textual
temp.top_menue_div.1 = TMENU
temp.top_menue_div.1 {
# Normal state properties
NO.allWrap = <span class="top_menue_span_no"> | </span>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <span class="top_menue_span_act"> | </span>
}
# Sub menue1 - menu-object, textual
temp.u_menue_div.2 = TMENU
temp.u_menue_div.2 {
# Normal state properties
NO.allWrap = <div class="u_men1_no"> | </div>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="u_men1_act"> | </div>
}
# Sub menue2 - menu-object, textual
temp.u_menue_div.2 = TMENU
temp.u_menue_div.2 {
# Normal state properties
NO.allWrap = <div class="u_men2_no"> | </div>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="u_men2_act"> | </div>
}
Main TEMPLATE cObject for the BODY
# 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 ###top_menue_div### subpart with dynamic menu:
subparts.top_menue_div < temp.top_menue_div
# Substitute the ###content_div### subpart with some example content:
subparts.content_div < styles.content_div.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
Ich hoffe, dass wenigstens einige Ansätze davon richtig sind??
Ich würde mich einfach freuen, wenn mir der eine oder andere ein paar Tips geben könnte.
Ich sitze hier über der Anleitung doc_tut_templselect_de, aber irgendwie komme ich einfach nicht mehr weiter!
Iich bedanke mich jetzt schon mal bei jedem, der sich die Zeit genommen hat!!
Viele Grüße
Martin