< CMS Certified Integrator 14 LTS

ViewHelper: Arguments

TYPO3

Show in app

Description

Fluid templates can define explicit arguments using the <f:argument> ViewHelper. Arguments declare which parameters a template, partial or component expects, including their type, default value, and whether they are optional. In the context of Fluid Components, argument definitions are mandatory and form the public API of a component.

Goals

  • I know the purpose of the <f:argument> ViewHelper in Fluid.
  • I can define arguments for Fluid templates and partials.
  • I understand the difference between required and optional arguments and how to define default values.
  • I know that <f:argument> is required when defining Fluid Components.
  • I understand that argument definitions represent the explicit API contract of a Fluid Component.
  • I am aware that only defined arguments are accepted by components unless explicitly configured otherwise.

Maintainer

Oliver Thiele Web Development Oliver Thiele