Project

General

Profile

Actions

Bug #91769

closed

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

Added by Julian Mair almost 4 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2020-07-09
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
fluid, assets, viewhelper, doc, assetcollector
Complexity:
Is Regression:
Sprint Focus:

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.
See here: https://docs.typo3.org/other/typo3/view-helper-reference/10.4/en-us/typo3/fluid/latest/Asset/Css.html#priority

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

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?

Actions

Also available in: Atom PDF