TYPO3 中 TCA 字段之间的新行

Mar*_*erg 1 typo3

我正在寻找在 TYPO3 后端的字段之间添加新行的方法。

这是我的 TCA 代码:

'tx_name' => array(
        'label'     => 'Your name',
        'config'    => array(
            'type'        => 'input',
            'size'        => '600',
        )
),
Run Code Online (Sandbox Code Playgroud)

而不是调色板:

$GLOBALS['TCA']['pages']['palettes']['mypallete'] = array(
    'showitem' => 'tx_name, tx_surename, tx_....'
);
Run Code Online (Sandbox Code Playgroud)

我想名字,姓氏总是在新行中。

Bjø*_*mer 6

你应该包括那里的字符串 --linebreak--

所以在你的代码中它会是这样的:

$GLOBALS['TCA']['pages']['palettes']['mypallete'] = array(
    'showitem' => 'tx_name','--linebreak--','tx_surename','--linebreak--', tx_....'
);
Run Code Online (Sandbox Code Playgroud)

所以现在你应该把每个字段都放在新行上。