gpt4 book ai didi

typo3 - TYPO3 中 TCA 字段之间的新行

转载 作者:行者123 更新时间:2023-12-01 22:17:55 24 4
gpt4 key购买 nike

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

这是我的 TCA 代码:

    'tx_name' => array(
'label' => 'Your name',
'config' => array(
'type' => 'input',
'size' => '600',
)
),

然后是调色板:

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

我希望名字、姓氏始终在新行中。

最佳答案

你应该包括字符串 --linebreak--

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

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

所以现在你应该让每个字段都换行。

关于typo3 - TYPO3 中 TCA 字段之间的新行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43100455/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com