Project

General

Profile

Actions

Bug #81624

closed

ContentObjectRenderer not fully initialized in f:format.html ViewHelper

Added by Torsten Schrade almost 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-06-20
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

\TYPO3\CMS\Fluid\ViewHelpers\Format\HtmlViewHelper->renderStatic() misses a call to \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->start() after instantiation and before it passes the content to parseFunc.

Because of this the $hookObjects of ContentObjectRenderer are not initialized during the processing with parseFunc in f.format.html. This makes it impossible to apply own TypoScript cObjects via $this->cObjHookObjectsRegistry (like the XSLT or XPATH content objects for example) or own extensions to stdWrap functions via $this->stdWrapHookObjects.

The solution is to call $contentObject->start([], '') after instantiation (just like it's done in TYPO3\CMS\Fluid\ViewHelpers\Link\TypolinkViewHelper).

This issue applies to all versions from 7.6 onwards.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #75314: HtmlViewHelper ignores stdwrap hooksClosed2016-03-30

Actions
Actions

Also available in: Atom PDF