Issue Bug Closed

#92749Add data to HtmlViewHelper

Stefan Froemken 11/02/20, 14:11 updated 10/04/22, 14:16

Description

Hello Core-Team,

we have added some if-conditions into lib.parseFunc_RTE to change link-color for different colPos.

We are using the default Text.html Template of fluid_styled_content:

<f:format.html>{data.bodytext}</f:format.html>

This ViewHelper creates a new ContentObjectRenderer and initializes it with an empty data argument:

$contentObject = GeneralUtility::makeInstance(ContentObjectRenderer::class);
$contentObject->start([]);

As $cObj->data is empty now, our TS if-condition on field=colPos will never match.

I prefer to add a new property to HtmlViewHelper to get if-conditions in TS works again.

Stefan

Reviews 2