TYPO3 Mask扩展后端视图调整:重复字段仅显示首个的解决方法
I’ve run into similar glitches with Mask’s repeatable fields in older TYPO3 versions, so here are targeted fixes to get all your name fields showing up in the backend:
1. Verify Mask setup & regenerate cached configurations
First, double-check your content element setup in Mask:
- Open the Mask module, load your content element, and confirm the name field is nested inside a repeatable container (not a standard field group).
- Re-save the content element configuration, then flush all TYPO3 caches (including configuration cache). Old cached TCA settings are a common culprit here—you can do this via the backend’s "Flush all caches" button or run this command in your project root:
./typo3cms cache:flush
2. Manually adjust TCA for repeatable fields
Mask 3.1.0 has a minor known bug with inline repeatable fields in TYPO3 8.7 that can suppress multiple entries. To fix this:
- Locate the TCA override file for your content element, typically at
typo3conf/ext/mask/Configuration/TCA/Overrides/tt_content.php - Find the section for your repeatable container (e.g.,
tx_mask_personsif your container is named "Persons") - Ensure the config includes these critical settings to enable multiple entries and proper backend rendering:
'tx_mask_persons' => [ 'exclude' => true, 'label' => 'Persons', 'config' => [ 'type' => 'inline', 'foreign_table' => 'tx_mask_yourcehandle', // Replace with your Mask table name 'foreign_field' => 'parentid', 'foreign_table_field' => 'parenttable', 'maxitems' => 9999, // Make sure this isn't set to 1 'appearance' => [ 'collapseAll' => 0, 'useSortable' => 1, 'enabledControls' => [ 'new' => 1, 'delete' => 1, 'dragdrop' => 1, ], ], ], ], - After editing, flush caches again and reload the backend.
3. Upgrade Mask to the latest 3.x release
Mask 3.1.0 is outdated for TYPO3 8.7.13. Later releases in the 3.x branch (like 3.1.5) fix backend rendering issues for repeatable fields. Since TYPO3 8.7 doesn’t support Mask 4+, stick to the latest 3.x version—you can update via Composer or the TYPO3 Extension Manager.
4. Quick UI check: Expand the field group
Sometimes it’s just a simple oversight! In the backend content element editor, click the title of your repeatable field group—it might be collapsed, hiding all entries except the first one.
内容的提问来源于stack exchange,提问作者Pavenstaedter

