简体   繁体   English

TYPO3 TCA类别和FAL

[英]TYPO3 TCA categories and FAL

I would like to illustrate the following in the TCA of TYPO3 v9.5.5 我想在TYPO3 v9.5.5的TCA中说明以下内容

  • Category 1 (Select selection from dataset, after selection one should be able to select PDFs) 类别1(从数据集中选择选择,选择之后应该可以选择PDF)

--- FAL 1 -FAL 1

--- FAL 2 -FAL 2

--- FAL 3 -FAL 3

  • Category 2 2类

--- FAL 1 -FAL 1

--- FAL 2 -FAL 2

I find it hard to find an approach. 我发现很难找到一种方法。 I am relatively new to TYPO3. 我是TYPO3的新手。 About "type = inline" does not work, because the SELECT fields should be. 关于“类型=内联”不起作用,因为应该使用SELECT字段。 I do not want a ready-made solution, just approaches. 我不希望有现成的解决方案,而只是想办法。 Happy with links to documentaries or sources. 满意纪录片或资料来源的链接。

According to your answer on my comment what you need is the following: 根据您对我的评论的回答,您需要以下内容:

'yourField' => [
   'exclude' => true,
    'label' => 'LLL:EXT:yourExtension/Resources/Private/Language/locallang_db.xlf:yourfield',
        'config' => [
            'type' => 'select',
            'renderType' => 'selectMultipleSideBySide',
            'foreign_table' => 'nameofpdftables',
            'MM' => 'nameofthe_relation_mm',
        ],
    ],

If you created the extension with Extension manager, then the mm table should automatically be there. 如果使用扩展管理器创建了扩展,则mm表应自动存在。 Then you will see the pdfs that belong to this field. 然后,您将看到属于该字段的pdf。

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

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