[TYPO3-dev] Re: TCA / sys_file_reference / title default value

Philipp philippwrann at gmx.at
Thu Oct 24 13:32:02 CEST 2013


When adding this line:
$trData->defVals['sys_file_reference']['title'] = NULL;

in InlineElement::getRecord

the field is disabled by default like i want it to be.

In the DataPreprocessor there is a property called defVals, that has the following comment above:
// Can be set with an array of default values for tables. First key is table name, second level keys are field names. Originally this was a GLOBAL array used internally.

That never seems to happen in the ajax request. Building or loading of that map should happen in a init-method in that object, so its assured to be present whenever the DataPreprocessor is called using the objectManager.

Of course it works from the second build because no def-values are used, the data is directly selected from the database.



More information about the TYPO3-dev mailing list