Project

General

Profile

Actions

Feature #73669

closed

TCA: need for a passthrough with user type

Added by Franz Holzinger over 8 years ago. Updated over 7 years ago.

Status:
Rejected
Priority:
Could have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2016-02-25
Due date:
% Done:

0%

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

Description

The TCA offers a type "passthrough" and a type "user". However it is necessary to allow a "user" type to use the passthrough as well.
I suggest to use a new subconfiguration "db" with the value "passthrough" in this case. This field does not exist in the database table. It is a generated output.

'privateField' => Array (
    'exclude' => 1,
    'label' => 'LLL:EXT:myext/locallang_db.xml:tx_myext_table.privatField',
    'config' => Array (
        'type' => 'user',
        'size' => '30',
        'db' => 'passthrough',
        'userFunc' => 'EXT:myext/hooks/class.tx_myext_hooks_be.php:tx_myext_hooks_be->displayPrivateField',
        'parameters' => array(
            'format' => 'html'
        ),
    )
),
Actions

Also available in: Atom PDF