[TYPO3] noWrapAttr for form textareas seems not working ...
Giannis Economou
gecon at di.uoa.gr
Tue May 27 11:41:24 CEST 2008
I've managed to resolve this, so I post a reply for anyone who might
also be interested.
The "tt.content.mailform.20.noWrapAttr = 1" was ignored, because I'm
using the onet_correctform extension.
The onet_correctform extension, as it is today, has not incorporated
this bug fix:
http://bugs.typo3.org/view.php?id=2075
so it still makes it not possible to create valid stict xhtml textareas.
I've patched my class.ux_tslib_cObj.php to work right and I've also
filled a bug report about this on bugs.typo3.org.
Giannis
Giannis Economou wrote:
> Hello..
>
> I'm running TYPO3 4.1.5 and I'm trying to disable the wrap attribute of
> textareas of a generic mail form (to validate against xhtml).
> Unfortunately, the required TS configuration does not seem to work.
> In TSOB I can see the value I've set, as:
> tt.content.mailform.20.noWrapAttr = 1
>
> The textarea is defined as follows in form configuration (on the c.e.):
> Message* | address=textarea,40,5
>
> In typo3_src-4.1.5/typo3/sysext/cms/tslib/class.tslib_content.php (7524)
> I can see the right code:
> $wrap=trim($fParts[3]);
> if ($conf['noWrapAttr']
> || $wrap === 'disabled') {
> $wrap='';
> } else {
> $wrap = $wrap ?
> ' wrap="'.$wrap.'"' : ' wrap="virtual"';
> }
>
> but it's like the $conf['noWrapAttr'] is ignored.
>
>
> Of course I've cleared cache.
> The wrap="virtual" is not removed.
>
>
> I also tried to set for the form:
> Message* | address=textarea,40,5, disabled
> and I just get: wrap="disabled" in the final html.
>
>
> Thank you.
>
> Best regards,
> Giannis
>
More information about the TYPO3-english
mailing list