[TYPO3-core] RFC Feature #16295: Optimize stdWrap usage for TypoScript content element FORM

JoH asenau info at cybercraft.de
Sun Nov 7 17:45:28 CET 2010


This is an SVN patch request.

Type: Feature

Bugtracker references: http://bugs.typo3.org/view.php?id=16295

Branches: trunk

Problem:
One part of the current TypoScript tuning process is to add missing stdWrap functions to existing content elements and optimize the current usage of stdWrap functions.

Solution:
The attached patch will improve the element FORM by

adding stdWrap to the parameters

formName
fieldPrefix
wrapFieldName
params
params.tagname
dontMd5FieldNames
accessibility
compensateFieldWidth
noWrapAttr
noValueInsert
dataArray.X.required
dataArray.X.type
dataArray.X.valueArray.X.selected
dataArray.X.valueArray.X.value
REQ
REQ.layout
COMMENT.layout
CHECK.layout
RADIO.layout
LABEL.layout
redirect
target
no_cache
locationData
goodMess
badMess
emailMess
method
arrayReturnMode
hiddenFields (here as hiddenFields.stdWrap to avoid conflicts with fieldnames)

that have been missing stdWrap properties.

optimizing the usage of stdWrap for the parameters

data
dataArray.X.label
dataArray.X.value
dataArray.X.valueArray.X.label
dataArray.X.specialEval
radioWrap
radioWrap.accessibilityWrap
radioInputWrap
fieldWrap
labelWrap
commentWrap

so that stdWrap will only be executed when there is a "dotted" key

data.
dataArray.X.label.
dataArray.X.value.
dataArray.X.valueArray.X.label.
dataArray.X.specialEval.
radioWrap.
radioWrap.accessibilityWrap.
radioInputWrap.
fieldWrap.
labelWrap.
commentWrap.

available.

Additionally hiddenFields.stdWrap.wrap has been added to setup.txt of CSS-styled-content, so that the default "wrap", which is actually hardcoded HTML can be overriden when necessary.

Some of the acronyms have been replaced with longer variable names.

Cheers

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tslib_content_FORM.diff
Type: application/octet-stream
Size: 29206 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101107/348c352d/attachment-0001.obj>


More information about the TYPO3-team-core mailing list