TYPO3Buddy
TYPO3Buddy is on FacebookTYPO3Buddy is on Twitter
menu

TYPO3 Fluid: Update the typoscript "Main template"

Next, you need to tell TYPO3 that it needs to use the "one content column with side menu" content template (main_1_column_with_menu.html) to show the content. You'll have to edit the main typoscript template and add the following:

page.10 = FLUIDTEMPLATE
page.10 {
    format = html
    file = fileadmin/templates/main_1_column_with_menu.html
    variables {
        content_main < styles.content.get
        content_main.select.where = colPos = 0
    }
}

As shown here:

TYPO3 Fluid tutorial: Typoscript enable Fluid template - TYPO3Buddy website tutorial

Template "format" is html by default. Should you want to use template files with another extension (such as htm or txt), you'll also need to change that here. With "file" you indicate which template file you want to use. The variables indicate which parts need to be filled with content (content_main) and with which part in the backend layout it corresponds (colPos = 0).

Save the typoscript template. To make sure all changes will be effective, clear all cache by clicking the lightning bolt on the top right of the TYPO3 window.

Next step: add some content to the home page ->

The TYPO3Buddy website is a tutorial to rebuild the TYPO3Buddy website from scratch. You can choose from a TYPO3 Fluid tutorial and a TYPO3 Templavoila tutorial. You'll build TYPO3 websites like you've done so for years!

Kind reminder! This tutorial has been tested with and updated for TYPO3 v10. Please keep in mind that the tutorial has once been set up for TYPO3 v6. It follows some deprecated conventions. If so, this will be mentioned in the tutorial.