简体   繁体   中英

TYPO3 TCA categories and FAL

I would like to illustrate the following in the TCA of TYPO3 v9.5.5

  • Category 1 (Select selection from dataset, after selection one should be able to select PDFs)

--- FAL 1

--- FAL 2

--- FAL 3

  • Category 2

--- FAL 1

--- FAL 2

I find it hard to find an approach. I am relatively new to TYPO3. About "type = inline" does not work, because the SELECT fields should be. 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. Then you will see the pdfs that belong to this field.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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