#50740Provide syntax "__row|uid_local|fieldname" for $TCA[...]['config']['default']
Description
With
$TCA['sys_file_reference']['columns']['title']['config']['placeholder'] = '__row|uid_local|title'
it is possible to get data from a related record, which is added as non-editable placeholder-attribute.
To make it possible for an editor to really use the content of the field I think it would make sense to enable the syntax above for
$TCA['sys_file_reference']['columns']['title']['config']['default']
aswell.
It is possible to add this functionality by copying the code from TYPO3\CMS\Backend\Form -> getPlaceholderAttribute via the hook
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tceforms.php']['getMainFieldsClass']
But I think this could/should be a core-feature. So maybe it would make sense to externalize the function TYPO3\CMS\Backend\Form -> getPlaceholderAttribute to the GeneralUtility for example so that it can be used on various places ..?
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.