Hallo Forum,
ich mache gerade meine allerersten Gehversuche mit Typo3 und habe daher leider noch nicht allzuviel Ahnung. Ich habe mir zunächst die Anleitung "Moderne Template Erstellung" durchgelesen und dann mit einem eigenen Template meine ersten Versuche gemacht.
Nun habe ich das Problem, dass ich den Content nicht eingebunden bekommen. Ich möchte den Content aus der Spalte normal zwischen die beiden Marken "DOCUMENT_CONTENT" im HTML einfügen!?
In der Anleitung "Moderne Template Erstellung" bin ich mit dem "Autoparser" anhand dessen es dort erklärt ist nicht so recht klar gekommen und finde die Methode auch nicht so toll. Sollte man den verwenden?
Danke für die Hilfe!
# 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 = <li class="lvl01"><strong> | </strong>
NO.ATagParams = class="level01"
#Enable active state and set properties:
ACT = 1
ACT.allWrap = <li class="lvl01-active"><strong> | </strong>
ACT.ATagParams = class="level01"
}
# Second level menu-object, textual
temp.menu_1.2 = TMENU
temp.menu_1.2 {
wrap = <ul> | </ul>
# NOrmal state properties
NO.allWrap = <li><strong> | </strong>
NO.ATagParams = class="level02"
#Enable active state and set properties:
ACT = 1
ACT.allWrap = <li class="lvl02-active"><strong> | </strong>
ACT.ATagParams = class="level02"
}
temp.content = TEXT
temp.content{
table = tt_content
select {
where = colPos = 0
orderBy = sorting
languageField = sys_language_uid
}
}
# Template content object:
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
template = FILE
template.file = fileadmin/template/template.html
#workOnSubpart = DOCUMENT_BODY
subparts.HAUPTNAVIGATION = TEXT
subparts.HAUPTNAVIGATION < temp.menu_1
subparts.DOCUMENT_CONTENT = TEXT
subparts.DOCUMENT_CONTENT < temp.content
}
# Default Page object:
page = PAGE
page.typeNum = 0
page.10 < temp.mainTemplate