Я добавил новый вид в fs_media_gallery, но не отображался в выпадающем списке.
flatListThree отсутствует. Чего мне не хватает, я также добавил это Действие к контроллеру и хуку.
<switchableControllerActions>
<TCEforms>
<label>LLL:EXT:fs_media_gallery/Resources/Private/Language/locallang_be.xlf:flexforms.mediagallery.switchableControllerActions</label>
<onChange>reload</onChange>
<config>
<type>select</type>
<itemsProcFunc>MiniFranske\FsMediaGallery\Hooks\ItemsProcFuncHook->getItemsForSwitchableControllerActions</itemsProcFunc>
<items type="array">
<numIndex index="0">
<numIndex index="0">LLL:EXT:fs_media_gallery/Resources/Private/Language/locallang_be.xlf:flexforms.mediagallery.switchableControllerActions.I.empty</numIndex>
<numIndex index="1">MediaAlbum->index</numIndex>
</numIndex>
<numIndex index="1">
<numIndex index="0">LLL:EXT:fs_media_gallery/Resources/Private/Language/locallang_be.xlf:flexforms.mediagallery.switchableControllerActions.I.nestedList</numIndex>
<numIndex index="1">MediaAlbum->nestedList;MediaAlbum->showAsset</numIndex>
</numIndex>
<numIndex index="2">
<numIndex index="0">LLL:EXT:fs_media_gallery/Resources/Private/Language/locallang_be.xlf:flexforms.mediagallery.switchableControllerActions.I.flatList</numIndex>
<numIndex index="1">MediaAlbum->flatList;MediaAlbum->showAlbum;MediaAlbum->showAsset</numIndex>
</numIndex>
<numIndex index="3">
<numIndex index="0">FlatList Three</numIndex>
<numIndex index="1">MediaAlbum->flatListThree;MediaAlbum->showAlbum;MediaAlbum->showAsset</numIndex>
</numIndex>
<numIndex index="4">
<numIndex index="0">LLL:EXT:fs_media_gallery/Resources/Private/Language/locallang_be.xlf:flexforms.mediagallery.switchableControllerActions.I.showAlbumByConfig</numIndex>
<numIndex index="1">MediaAlbum->showAlbumByConfig;MediaAlbum->showAsset</numIndex>
</numIndex>
<numIndex index="5">
<numIndex index="0">LLL:EXT:fs_media_gallery/Resources/Private/Language/locallang_be.xlf:flexforms.mediagallery.switchableControllerActions.I.showAlbumByParam</numIndex>
<numIndex index="1">MediaAlbum->showAlbum;MediaAlbum->showAsset</numIndex>
</numIndex>
</items>
<default>MediaAlbum->index</default>
<size>1</size>
</config>
</TCEforms>
</switchableControllerActions>