Project

General

Profile

Actions

Task #69369

closed

Epic #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.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Form Framework
Target version:
Start date:
2015-08-27
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.5
Tags:
Complexity:
easy
Sprint Focus:

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


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #55353: Found no way to set default value for form textareaClosed2014-01-27

Actions
Related to TYPO3 Core - Feature #69409: Forms: allow value attribute of OPTION object in wizardClosed2015-08-29

Actions
Related to TYPO3 Core - Bug #69957: EXT:form - Fix some problems with Container elementsClosed2015-09-24

Actions
Actions #1

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.

Actions #2

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)
}

Actions #3

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.

Actions #4

Updated by Björn Jacob about 9 years ago

  • Parent task set to #69347
Actions #6

Updated by Björn Jacob about 9 years ago

  • Status changed from New to In Progress
Actions #7

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

Actions #8

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

Actions #9

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

Actions #10

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

Actions #11

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

Actions #12

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

Actions #13

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

Actions #14

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

Actions #15

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
}

Actions #16

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

Actions #17

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

Actions #18

Updated by Anonymous about 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #19

Updated by Anja Leichsenring almost 9 years ago

  • Sprint Focus deleted (On Location Sprint)
Actions #20

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF