Bug #22295

textStyle doesn't work

Added by Stefan Froemken about 11 years ago. Updated over 6 years ago.

Should have
Target version:
Start date:
Due date:
% Done:


Estimated time:
TYPO3 Version:
PHP Version:
Is Regression:
Sprint Focus:


I just test some stdWrap-Properties and stubled over textStyle which generates font-Tags. I know...font-Tags are deprecated, but it isn't marked as deprecated and it is documented in TsRef.

My little test-TS:
10 = TEXT
10.value = Ich werde in ein font-Tag gewrapped
10.textStyle.face.field = 1

In frontend I saw only my text. There is no font-Tag wrapped around.

In code I found something like this:

function textStyle(...) {
$face = $this->data[$conf['face.']['field']];

What's that?!?! $this->data?!?!

After changing this to:

$face = $conf['face.']['field']

it works like expected.
(issue imported from #M13857)

Related issues

Related to TYPO3 Core - Task #49247: Deprecate TypoScript functions "textStyle" and "tableStyle"Closed2013-06-19


Updated by Stefan Froemken about 11 years ago

There was somebody asking if this function is deprecated 2 years ago.



Updated by Alexander Opitz almost 8 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (0)

The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?


Updated by Alexander Opitz over 7 years ago

  • Status changed from Needs Feedback to Closed
  • Is Regression set to No

No feedback for over 90 days.


Updated by Stefan Froemken over 7 years ago

I don't know if it is a problem. Maybe it is more a problem regarding an missing documentation.

Sure. Documentation told us to add a fieldname for $this->data, but it does not make sense to type in "header" or "title" as fieldname, because its content will never match some of the configured values in function textStyles which are numeric.

So maybe it is better to type in fieldnames which are numeric like header_layout. Now you have the possibility to set the size for a value with help of this field. But there are some more predefined values like "face" and "color", but there are no more selectboxes in "pages" or "tt_content" which could match.

It would be nice if you (documentation team) adds a little excample for this feature.



Updated by Stefan Neufeind over 7 years ago

  • Status changed from Closed to New

Updated by Chris topher over 6 years ago

  • Status changed from New to Rejected

#49247 finally deprecated this feature. textStyle will be removed in CMS 8.

Also available in: Atom PDF