Project

General

Profile

Actions

Feature #50740

closed

Provide syntax "__row|uid_local|fieldname" for $TCA[...]['config']['default']

Added by Michael Bakonyi almost 11 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Could have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2013-08-02
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
medium
Sprint Focus:

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 ..?

Actions

Also available in: Atom PDF