简体   繁体   English

如何对“ Typo3中列表模块中的列列表”进行重新排序

[英]How to re-order 'columns listing in list module in Typo3'

I'm setting up a storage folder where records can be entered via tca, I need to display two columns in the backend when they are listing, two columns are displaying now but the issue is one column is far from another column, needed to display columns both near. 我正在设置一个存储文件夹,可以在其中通过tca输入记录,列出时我需要在后端显示两列,现在正在显示两列,但问题是一列与另一列相距很远,需要显示列都近。 I used description_column in ctrl section (TCA) to display the second column. 我在ctrl部分(TCA)中使用了description_column来显示第二列。 Where do I need to change to re-order the columns? 我需要在哪里更改以重新排序列?

attaching the screenshot below: volume column is needed near name column, now it is far away 附上下面的屏幕快照:名称栏附近需要音量栏,现在距离很远

在此处输入图片说明

Thank you 谢谢

maybe you are looking for the configuration label_alt and lable_alt_force . 也许您正在寻找配置label_altlable_alt_force with this you can change the shown label of a record to a concatenation of multiple fields: 这样,您可以将记录的显示标签更改为多个字段的串联:

this needs to be configured in the ctrl part of the TCA of the records. 这需要在记录的TCA的ctrl部分中进行配置。

'ctrl' => [
    'label' => 'header',
    'label_alt' => 'header,subheader',
    'label_alt_force' => 1
],

be aware: this will change the label in all usages, not only the list display 请注意:这将更改所有用法中的标签,而不仅仅是列表显示

see the manual 参见手册

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM