Issue Feature Closed

#107056Introduce HeaderData and FooterData ViewHelpers

Torben Hansen 07/08/25, 12:47 updated 12/02/25, 13:57

Description

Users requiring to add content (e.g. inline JavaScript, link=preload tags not manageable by the asset collector API) can either use TypoScript, the PageRenderer in PHP or the HeaderAssets and FooterAssets sections to insert content.

In order to deprecate the HeaderAssets and FooterAssets sections, 2 new ViewHelpers should be added, which directly use PageRenderer->addHeaderData() and PageRenderer->addFooterData() to add header- or footer data.

Documentation of the new ViewHelpers should outline, that content is rendered as is and that the ViewHelpers should only be used, when the f:asset.script and f:asset.css do not fit.

Reviews 1