#104772<f:section name="HeaderAssets"> not working with PAGEVIEW
Description
I wanted to use the new typoscript PAGEVIEW, but <f:section name="HeaderAssets"> does not generate any output. By the way: is it possible to use <f:section name="HeaderAssets"> in layouts as well instead of template file? It would be nice to write <f:section name="HeaderAssets"> only once if there are many templates.</f:section></f:section></f:section>
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 1
History 6
-
Benni Mack commented and changed status
NewNeeds Feedback <span data-processor="relativetime" data-value="2024-10-04T22:20:56+00:00" > 10/04/24, 22:20 </span> -
Benjamin Franzke changed priority
Should haveCould have <span data-processor="relativetime" data-value="2024-10-07T13:10:03+00:00" > 10/07/24, 13:10 </span> -
Markus Sommer commented <span data-processor="relativetime" data-value="2024-10-14T06:21:56+00:00" > 10/14/24, 06:21 </span>
I have also noticed this behavior, and it seems to be related to the fact that the function for rendering the assets into the page renderer is not called. Specifically, the method \TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject::renderFluidTemplateAssetsIntoPageRenderer is not triggered.
I use this feature to integrate platform and device-specific tags, such as favicons and the manifest.json, into the page.
EXT:sitepackage/Resources/Private/Templates/Pages/Default.html
<f:section name="HeaderAssets"> <f:render partial="FavIcons" /> </f:section>EXT:sitepackage/Resources/Private/Templates/Partials/FavIcons.html
<link rel="icon" type="image/png" href="/favicon-48x48.png" sizes="48x48" /> <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" /> <meta name="apple-mobile-web-app-title" content="Männerkreis Niederbayern" /> <link rel="manifest" href="/site.webmanifest" />Current workaround
page.headerData.1000 = FLUIDTEMPLATE page.headerData.1000.file = EXT:sitepackage/Resources/Private/Templates/Partials/FavIcons.html -
Rafal Brzeski commented <span data-processor="relativetime" data-value="2025-01-26T01:23:03+00:00" > 01/26/25, 01:23 </span>
Thanks @delaramas for the workaround, it helped me alot insert meta tags in more convenient way than typoscript.
I was also confused why it wasn’t working. It would definitely be more consistent if PAGEVIEW supported the same syntax as FLUIDTEMPLATE. -
Riccardo De Contardi changed Related to #107056 <span data-processor="relativetime" data-value="2025-08-04T07:55:33+00:00" > 08/04/25, 07:55 </span>
-
Torben Hansen commented and changed status
Needs FeedbackClosed <span data-processor="relativetime" data-value="2025-11-22T11:56:50+00:00" > 11/22/25, 11:56 </span>With TYPO3 14, the auto-render assets sections have been deprecated (see #107057). It is suggested to use
f:asset.*ViewHelpers to add assets to files and TypoScript or a dedicated Fluid template to include assets with special requirements (e.g. special attributes).With TYPO3 14, the new ViewHelpers
f:page.headerDataandf:page.footerDatahave been introduced (see #107056). Those ViewHelpers can be used in template and layout files to globally add special assets, which can not be added using thef:asset.*ViewHelpers.Since the auto-render assets section will not be added to
PAGEVIEWand the whole feature has been deprecated, I’ll now close this ticket.
This is a feature which is part of FLUIDTEMPLATE, and IMHO this should be handled nowadays via <f:asset> etc. or other solutions. What is your usecase?</f:asset>