TYPO3 v10 has reached end-of-life as of April 30th 2023 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.

Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v10 here: TYPO3 ELTS.

Insert content in a HTML template

Although we now know how to render content, and how to build a menu, we do not have a real website yet.

Again everything could be done using TypoScript. That would be pretty complex and error prone. Furthermore if a HTML template file is prepared by a designer for the website, it would be a shame not to reuse it as is as much as possible. It would also make further corrections to the HTML template much harder to apply.

TYPO3 CMS provides the FLUIDTEMPLATE object, with which we can use Fluid template and render our website with it:

10 {
   templateName = TEXT
   templateName.value = Default

   templateRootPaths {
      0 = EXT:sitepackage/Resources/Private/Templates/Page/
   partialRootPaths {
      0 = EXT:sitepackage/Resources/Private/Partials/Page/
   layoutRootPaths {
      0 = EXT:sitepackage/Resources/Private/Layouts/Page/

In your template file you can now replace the parts that should be filled by TYPO3 with references to the TypoScript configuration objects you defined earlier.

For example to render a template with the menu we defined add:

   <f:cObject typoscriptObjectPath="lib.textMenu" />

<div class="container">
   <f:cObject typoscriptObjectPath="lib.dynamicContent" data="{pageUid: '{data.uid}', colPos: '0'}" />