Hey,
ich bin relativ neu was Typo3 angeht. Ich habe es nun erfolgreich geschafft ein Template (HTML-Template, nicht Fluid) einzubinden und ich bin stolz wie Oskar! Nun möchte ich jedoch, dass man im Backend verschiedene Templates zur Auswahl hat (Zweispaltig und Dreispaltig).
Dazu verwende ich diesen schönen Schnipsel:
page {
bodyTag = <body>
10= CASE
10.key.field=layout
# Standardtemplate
10.0 = TEMPLATE
10.0.template = FILE
10.0.template.file = fileadmin/template/content_template.html
10.0.workOnSubpart = DOCUMENT_BODY
# Variante 1:
10.1 = TEMPLATE
10.1.template = FILE
10.1.template.file = fileadmin/template/index_template.html
10.1.workOnSubpart = DOCUMENT_BODY
includeJSFooter {
jquery = fileadmin/template/js/jquery.js
bootstrap = fileadmin/template/js/bootstrap.min.js
app = fileadmin/template/js/app.js
}
includeCSS {
robotoFont = https://fonts.googleapis.com/css?family=Roboto:100,400
robotoFont.external = 1
robotoFont.media = all
bootstrapCore = fileadmin/template/css/bootstrap.min.css
bootstrapCore.media = all
customStyle = fileadmin/template/css/karriere-portal.css
customStyle.media = all
fontAwesome = fileadmin/template/font-awesome/css/font-awesome.min.css
fontAwesome.media = all
}
}
Leider wird nun jede Seite komplett leer, also quasi ohne Inhalt angezeigt. Dabei macht es keinen Unterschied welches "FrontEnd-Layout" ich im Backend auswähle. Jede Seite bliebt leer. Habe ich einen Fehler gemacht? Wo liegt dieser? Dankeschön 🙂