Project

General

Profile

Actions

Bug #92749

closed

Add data to HtmlViewHelper

Added by Stefan Froemken over 3 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Category:
Fluid Styled Content
Target version:
Start date:
2020-11-02
Due date:
% Done:

100%

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

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

Actions

Also available in: Atom PDF