Bug #54371
closed
This is in fact not a mistake in the documentation, but a bug in the system. Before #24063 stdWrap was present also for .value
and the aim of issue 24063 was not to remove stdWrap, but to "optimize usage", meaning to optimize the number of calls to the stdWrap function(s). Actually, this and all the other associated issues even did the opposite of removing: They added stdWrap to almost every place. The question whether stdWrap shouldn't then also be present for .value
, has also been discussed at that time already and as far as I see the result was that the stdWrap should not be missing for .value
. Only has this bug not been fixed yet. Accordingly I'll move this issue to the Core bugtracker for further treatment.
- Subject changed from There are no stdWrap-Probs on value in TEXT-cObject to Property "value" of cOjbect TEXT misses stdWrap
- Project changed from 24 to TYPO3 Core
- Subject changed from Property "value" of cOjbect TEXT misses stdWrap to Property "value" of cObject TEXT misses stdWrap
- PHP Version set to 5.5
- Is Regression set to No
- TYPO3 Version set to 6.1
The fix should be fairly simple: In frontend\Classes\ContentObject\TextContentObject.php, before the stdWrap for $conf, add lines like this
if (isset($conf['value.'])) {
$content = $this->cObj->stdWrap($content, $conf['value.']);
}
- Category set to TypoScript
- Status changed from New to Accepted
- Assignee set to Markus Klein
- Target version set to next-patchlevel
- TYPO3 Version changed from 6.1 to 6.0
- Status changed from Accepted to Under Review
Chris topher wrote:
This is in fact not a mistake in the documentation, but a bug in the system. Before #24063 stdWrap was present also for .value
From reading the code, I doubt, that. .value
never head stdWrap capabilities.
10 = TEXT
10.value.field = header
was never possible and I really ask myself if we need to support that.
The question whether stdWrap shouldn't then also be present for .value
, has also been discussed at that time already and as far as I see the result was that the stdWrap should not be missing for .value
.
Well, yes. I has been stated that "It makes little sense" but there was agreement to do so and deprecate the HTML element at the same time (which happened indeed).
So fine for this "weird" construct, fix is easy enough.
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF