Task #69369
closedEpic #69347: EXT:form - Optimize form wizard
EXT:form - Use property value instead of data for TEXTAREA, TEXTBLOCK, OPTION
Added by Oliver Hader about 9 years ago. Updated about 7 years ago.
100%
Description
The Form Objects (system extension "form") TEXTAREA, TEXTBLOCK, OPTION currently use data
as property name to define default values. However, all other objects use value
. Since data
implies the possibility to use computed values, it shall be deprecated and value
used instead.
Files
Deprecation-69369-UsePropertyValueInsteadOfDataForTEXTAREATEXTBLOCKOPTION.rst (952 Bytes) Deprecation-69369-UsePropertyValueInsteadOfDataForTEXTAREATEXTBLOCKOPTION.rst | Björn Jacob, 2015-10-07 09:29 |
Updated by Björn Jacob about 9 years ago
Just an addition: TEXTBLOCK uses "content" instead of "data". Anyway, it should be used "value" instead.
Updated by Björn Jacob about 9 years ago
We've discussed the whole issue and came to the conclusion to use "text" as the new attribute. According to this the TS should look like this:
10 = OPTION 10 { value = technical value text = human readable text inside tag (former .data) } 20 = TEXTAREA 20 { label = Rendered as label tag text = human readable text inside tag (former .data) } 30 = TEXTBLOCK 30 { text = <p>Could be HTML</p> (former .content) }
Updated by Björn Jacob about 9 years ago
- Subject changed from Use property value instead of data for TEXTAREA, TEXTBLOCK, OPTION to EXT:form - Use property value instead of data for TEXTAREA, TEXTBLOCK, OPTION
- Priority changed from Should have to Must have
- Target version set to 7 LTS
- Sprint Focus set to On Location Sprint
This has partly been fixed with #69957. We need to create a .rst file for the deprecation and have to adapt the form wizard.
Updated by Björn Jacob about 9 years ago
- File Deprecation-69369-UsePropertyValueInsteadOfDataForTEXTAREATEXTBLOCKOPTION.rst Deprecation-69369-UsePropertyValueInsteadOfDataForTEXTAREATEXTBLOCKOPTION.rst added
- File Deprecation-69369-UsePropertyValueInsteadOfDataForTEXTAREATEXTBLOCKOPTION.rst Deprecation-69369-UsePropertyValueInsteadOfDataForTEXTAREATEXTBLOCKOPTION.rst added
Attatched deprecation.rst.
Updated by Gerrit Code Review about 9 years ago
- Status changed from In Progress to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43895
Updated by Gerrit Code Review about 9 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43895
Updated by Gerrit Code Review about 9 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/43895
Updated by Gerrit Code Review about 9 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/43895
Updated by Gerrit Code Review about 9 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/43895
Updated by Gerrit Code Review about 9 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/43895
Updated by Gerrit Code Review about 9 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/43895
Updated by Gerrit Code Review about 9 years ago
Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/43895
Updated by Björn Jacob about 9 years ago
Example form for testing this issue:
enctype = multipart/form-data method = post prefix = tx_form confirmation = 1 layout { containerWrap ( <dl class="containerWrap"> <elements /> </dl> ) } postProcessor { 1 = mail 1 { recipientEmail = your@mail.com senderEmail = your@mail.com } } 10 = SELECT 10 { name = select1 label { value = Select 1 } 10 = OPTION 10 { # has to be converted to text automatically after saving in wizard data = Option 12 value = Value 15 } 20 = OPTION 20 { # has to be converted to text automatically after saving in wizard data = Option 23 value = Value 26 } 30 = OPTION 30 { text = Option 34 value = Value 37 } 40 = OPTION 40 { text = New option1 value = Value2 } } 20 = TEXTAREA 20 { cols = 40 name = textarea1 rows = 5 # has to be converted to text automatically after saving in wizard data = I am text. label { value = Textarea 1 } } 30 = TEXTAREA 30 { cols = 40 name = textarea2 rows = 5 text = I am text. label { value = Textarea 2 } } 40 = TEXTBLOCK 40 { # has to be converted to text automatically after saving in wizard content = I am even more text 1. } 50 = TEXTBLOCK 50 { text = I am even more text 2. } 60 = SUBMIT 60 { name = submit type = submit value = Submit form }
Updated by Gerrit Code Review about 9 years ago
Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/43895
Updated by Gerrit Code Review about 9 years ago
Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/43895
Updated by Anonymous about 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset e4107ceaa13c506f9175c1820c56e13bf3b5c0a8.
Updated by Anja Leichsenring almost 9 years ago
- Sprint Focus deleted (
On Location Sprint)
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed