Issue Bug Closed

#91769The `f:asset.css` ViewHelper doesn't handle `priority=false` like in the documentation

Julian Mair 07/09/20, 09:30 updated 09/25/21, 18:58

Description

Both of the new `asset` ViewHelpers can set the priority to either true or false, which means (according to the doc) to insert the tags either in <head> or directly before the closing <body> tag.<br>See here: <a href="https://docs.typo3.org/other/typo3/view-helper-reference/10.4/en-us/typo3/fluid/latest/Asset/Css.html#priority" target="_blank" rel="noreferrer">https://docs.typo3.org/other/typo3/view-helper-reference/10.4/en-us/typo3/fluid/latest/Asset/Css.html#priority</a></body></head>

But for the `f:asset.css` ViewHelper it’s always in the <head> tag.</head>

I narrowed it down to the pageRendererTemplateFile “EXT:frontend/Resources/Private/Templates/MainPage.html”… For the time being, I fixed it myself by overriding and restructuring the marker positions.

But the question is: is this a bug by Typo3 or just a wrong statement in the docs?

Reviews 2