< Book/eBook | TCCD Study Guide - Chapter 07

Templates, Layouts, Partials

TYPO3

Show in app

Description

Fluid uses three types of template files: Templates, Layouts, and Partials. Templates are always the starting point. Layouts wrap reusable HTML markup around multiple templates, such as header and footer. Partials are reusable code snippets that require variables to be passed in explicitly. Together they separate structure, shared markup, and reusable fragments into maintainable units.

Goals

  • I know the three Fluid template file types and their roles: Templates (starting point), Layouts (shared surrounding markup), and Partials (reusable fragments).
  • I know that Layouts have access to all template variables, while Partials only receive variables explicitly passed to them via the arguments attribute of f:render.
  • I know that template root paths are defined as arrays in TemplatePaths, and that Fluid checks the last added path first, allowing path-based template overriding.

Maintainer

Oliver Thiele Web Development Oliver Thiele