[TYPO3-german] Fluidtemplate mit mehreren (Haupt-)Layouts
Martin
martinstockffm at googlemail.com
Sun Jan 3 17:09:34 CET 2016
Hallo und danke für die bisherigen Infos,
meine Ordnerstruktur habe ich etwas angepasst und sieht aus wie der folgende Code:
config.no_cache = 1
config.doctype = html5
page = PAGE
page.typeNum = 0
page.10 = FLUIDTEMPLATE
page.10 {
format = html
file = fileadmin/templates/Resources/Private/Layouts/main_layout.html
partialRootPath = fileadmin/templates/Resources/Private/Partials
layoutRootPath = fileadmin/templates/Resources/Private/Layouts
variables{
content_main < styles.content.get
content_main.select.where = colPos = 0
content_column_1 < styles.content.get
content_column_1.select.where = colPos = 1
content_column_2 < styles.content.get
content_column_2.select.where = colPos = 2
}
}
page.10.file.stdWrap.cObject = CASE
page.10.file.stdWrap.cObject {
key.data = levelfield:-1, backend_layout_next_level, slide
key.override.field = backend_layout
default = TEXT
default.value = fileadmin/templates/Resources/Private/Templates/main_1_column_with_menu.html
1 = TEXT
1.value = fileadmin/templates/Resources/Private/Templates/main_1_column_with_menu.html
2 = TEXT
2.value = fileadmin/templates/Resources/Private/Templates/main_1_column_without_menu.html
3 = TEXT
3.value = fileadmin/templates/Resources/Private/Templates/main_2_column_without_menu.html
}
page.headerData.999 = TEXT
page.headerData.999.value (
<!-- Bootstrap Core CSS -->
<link rel="stylesheet" href="fileadmin/templates/Resources/Public/css/bootstrap.css" rel="stylesheet">
<!-- Template CSS -->
<link rel="stylesheet" href="fileadmin/templates/Resources/Public/css/animate.css" rel="stylesheet">
<link rel="stylesheet" href="fileadmin/templates/Resources/Public/css/font-awesome.css" rel="stylesheet">
<link rel="stylesheet" href="fileadmin/templates/Resources/Public/css/nexus.css" rel="stylesheet">
<link rel="stylesheet" href="fileadmin/templates/Resources/Public/css/responsive.css" rel="stylesheet">
<link rel="stylesheet" href="fileadmin/templates/Resources/Public/css/custom.css" rel="stylesheet">
<!-- Google Fonts-->
<link href="http://fonts.googleapis.com/css?family=Roboto:400,300" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300" rel="stylesheet" type="text/css">
)
CODE ENDE
Nun habe ich aber ein Problem festgestellt. Im Layouts-Ordner befindet sich die Datei "main_layout.html". In dieser hatte ich bisher die statischen Daten der Footerausgabe, um zu testen, ob es alles sowiet funktioniert. Hatte es auch. Ich habe den Footercode in den Ordner Partials mit der Datei "footer.html" verschoben und will diesen Bereich als Partial rendern.
Doch dies passiert nicht. Der Footer-bereich bleibt leer und ich finde den Fehler nicht.
Hier der Code des bisherigen "main_layout.html":
CODE
<div id="body_bg">
<div id="pre_header" class="container">
</div>
<div class="primary-container-group">
<!-- Background -->
<div class="primary-container-background">
<div class="primary-container"></div>
<div class="clearfix"></div>
</div>
<!--End Background -->
<div class="primary-container">
<div id="header" class="container">
<div class="row">
<!-- Logo -->
<div class="logo">
<a href="index.html" title="">
<img src="assets/img/logo.png" alt="Logo" />
</a>
</div>
<!-- End Logo -->
</div>
</div>
<!-- Top Menu -->
<div id="hornav" class="container no-padding">
<div class="row">
<div class="col-md-12 no-padding">
<div class="pull-right visible-lg">
<f:cObject typoscriptObjectPath="lib.navigation" />
</div>
</div>
</div>
</div>
<!-- End Top Menu -->
<!-- === END HEADER === -->
<!-- === BEGIN CONTENT === -->
<div id="content">
<div class="container">
<div class="container">
<!-- Main Content -->
<f:render section="content" />
<!-- End Main Content -->
</div>
</div>
</div>
</div> </div>
<!-- End Main Column -->
<f:render partial="footer" />
</body>
</div><!-- container -->
CODE Ende
Ich weiss nicht, was falsch ist und warum der Footer nicht gerendert wird!
More information about the TYPO3-german
mailing list