Project

General

Profile

Actions

Bug #81624

closed

ContentObjectRenderer not fully initialized in f:format.html ViewHelper

Added by Torsten Schrade over 7 years ago. Updated about 6 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 #1

Updated by Torsten Schrade over 7 years ago

  • Description updated (diff)
Actions #2

Updated by Gerrit Code Review over 7 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53264

Actions #3

Updated by Gerrit Code Review over 7 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53264

Actions #4

Updated by Gerrit Code Review over 7 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53264

Actions #5

Updated by Markus Klein over 7 years ago

  • Related to Bug #75314: HtmlViewHelper ignores stdwrap hooks added
Actions #6

Updated by Gerrit Code Review over 7 years ago

Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53336

Actions #7

Updated by Torsten Schrade over 7 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Gerrit Code Review over 7 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53338

Actions #9

Updated by Torsten Schrade over 7 years ago

  • Status changed from Under Review to Resolved
Actions #10

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF