Bug #85484

Feature-79409 renderAssetsForRequest doesn't honor {parsing off} processor

Added by Peter Niederlag 9 months ago. Updated 9 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2018-07-05
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
7.1
Tags:
fluid parsing
Complexity:
Is Regression:
Sprint Focus:

Description

Fluid in TYPO3 has a feature to add assets to footer/header of the page when used inside a Controller.
https://docs.typo3.org/typo3cms/extensions/core/Changelog/8.6/Feature-79409-AutorenderAssetSectionsInFluidTemplateWithController.html

However when the fluid template has a processing instruction {parsing off} this will make the content of the template appear in header and footer section of the page, which is an unexpected behaviour for the developer.

As a workaround you can override function renderAssetsForRequest() in your controller.

See https://github.com/TYPO3/Fluid/issues/392 for the original bug-report and an example extension to demonstrate the problem.

fluid_parsing_off.zip (4.69 KB) Mathias Brodala, 2018-07-05 10:20

History

#1 Updated by Mathias Brodala 9 months ago

Here's the test extension copied from Github.

Also available in: Atom PDF