Bug #22295
closedtextStyle doesn't work
0%
Description
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)
Updated by Stefan Froemken over 14 years ago
There was somebody asking if this function is deprecated 2 years ago.
0008931
Updated by Alexander Opitz over 11 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 about 11 years ago
- Status changed from Needs Feedback to Closed
- Is Regression set to No
No feedback for over 90 days.
Updated by Stefan Froemken about 11 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.
Stefan
Updated by Chris topher almost 10 years ago
- Status changed from New to Rejected
#49247 finally deprecated this feature. textStyle will be removed in CMS 8.