Feature #36609

Overwriting flexform in page TSConfig is not respected in TCEMain

Added by Aske Ertmann over 7 years ago. Updated almost 2 years ago.

Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2012-04-26
Due date:
% Done:

0%

PHP Version:
Tags:
Complexity:
medium
Sprint Focus:

Description

Overwriting flexform values for tt_content in page TSConfig works fine when generating the form, but when TCEMain saves the record the flexform is read again but not overwritten by TSConfig. This gives issues when changing the eval config of a field in flexform. Because in the form it works like expected, but when saving an unexpected value is stored.

Example:

TCEFORM {
    tt_content {
        pi_flexform {
            table {
                sDEF {
                    acctables_tableclass {
                        config {
                            default = table table-bordered
                            eval = trim
                        }
                    }
                }
            }
        }
    }
}

Allows multiple classes in the form, but when saving the original eval value "nospace,trim,alphanum_x" (typo3/sysext/css_styled_content/flexform_ds.xml:88) is used and removes the space and other things..

History

#1 Updated by Burkhard Görtz over 6 years ago

Aske Ertmann wrote:

Allows multiple classes in the form, but when saving the original eval value "nospace,trim,alphanum_x" (typo3/sysext/css_styled_content/flexform_ds.xml:88) is used and removes the space and other things..

As a workaround you could create your own flexform_table.xml in your extension and replace the original one from css_styled_content in your ext_tables.php:

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('*', 'FILE:EXT:'.$_EXTKEY.'/flexform_table.xml', 'table');

#2 Updated by Mathias Schreiber over 4 years ago

  • Target version changed from 4.7.1 to 7.4 (Backend)
  • Is Regression set to No

#3 Updated by Susanne Moog about 4 years ago

  • Target version changed from 7.4 (Backend) to 7.5

#4 Updated by Benni Mack almost 4 years ago

  • Target version changed from 7.5 to 7 LTS

#5 Updated by Mathias Schreiber almost 4 years ago

  • Target version deleted (7 LTS)

#6 Updated by Oliver Hader almost 2 years ago

  • Tracker changed from Bug to Feature

PageTS for TCEFORM is just not analyzed in DataHandler. So, this would be a general topic to process the relevant parts in DataHandler.

#7 Updated by Oliver Hader almost 2 years ago

  • Status changed from New to Accepted
  • Complexity set to medium

Also available in: Atom PDF